Fabian 6b22190c2d Add test for #753 há 9 meses atrás
..
api 6b22190c2d Add test for #753 há 9 meses atrás
benchmark f5803f3009 fix arch-bytemark when used without parameters há 10 meses atrás
devices d4831d3b10 Remove some unncessary quoting há 1 ano atrás
expect 58f9902057 merge updates to last_op_size and flags_changed há 1 ano atrás
full b87c970cc3 tests: 9front doesn't work with 256k seabios há 9 meses atrás
jit-paging 0615be5d60 Fixed issue #632 async/await (#633) há 1 ano atrás
kvm-unit-tests da0845189b import recent kvm-unit-test changes (fixes incorrectly failing push es test) há 1 ano atrás
manual c4597d78aa Add test for emulator getting garbage-collected há 1 ano atrás
nasm 8dc153b8eb nasmtests: compare entire bss (resize it to 8kB) há 1 ano atrás
qemu a33423c2ea fbstp: test for input that doesn't fit into i64 há 1 ano atrás
rust acb8ad5423 Avoid console.assert (doesn't throw) há 3 anos atrás
Readme.md 2697aa6192 Document env variables for tests há 3 anos atrás

Readme.md

Use the corresponding make target in the root directory to run a test. The following list is roughtly sorted from most interesting/useful to least.

  • nasm: Small unit tests written in assembly, which are run using gdb on the host.
  • qemu: Based on tests from qemu. Builds a Linux binary, which tests many CPU features, which are then compared to a run on qemu.
  • kvm-unit-test: Based on tests from the KVM project, tests various CPU features.
  • full: Starts several OSes and checks if they boot correctly.
  • jit-paging: Tests jit and paging interaction.
  • api: Tests for several API functions of v86.
  • devices: Device tests.
  • rust: Rust unit test helpers.
  • expect: Expect tests for the jit output. Contains a set of asm+wasm files, where the jit is expected to produce the wasm file given the asm file.

The following environmental variables are respected by most tests if applicable:

  • TEST_RELEASE_BUILD=1: Test the release build (libv86.js, v86.wasm) instead of the debug build (libv86-debug.js, v86-debug.wasm)
  • MAX_PARALLEL_TESTS=n: Maximum number of tests to run in parallel. Defaults to the number of cores in your system or less.
  • TEST_NAME="…": Run only the specified test (only expect, full, nasm)