v86/tests
2022-11-26 14:11:19 -06:00
..
api Fixed issue #632 async/await (#633) 2022-07-25 14:55:07 +02:00
benchmark bytemark bench: turn off blinking cursor 2022-11-15 10:14:28 +09:00
devices Remove some unncessary quoting 2022-08-02 21:40:57 +09:00
expect merge updates to last_op_size and flags_changed 2022-11-15 10:14:28 +09:00
full Add redox (#301) 2022-11-26 14:11:19 -06:00
jit-paging Fixed issue #632 async/await (#633) 2022-07-25 14:55:07 +02:00
kvm-unit-tests import recent kvm-unit-test changes (fixes incorrectly failing push es test) 2022-11-26 14:11:19 -06:00
manual Add test for emulator getting garbage-collected 2022-08-02 21:40:57 +09:00
nasm nasmtests: compare entire bss (resize it to 8kB) 2022-11-26 14:11:19 -06:00
qemu fbstp: test for input that doesn't fit into i64 2022-09-06 00:26:39 +09:00
rust Avoid console.assert (doesn't throw) 2020-12-31 19:14:30 -06:00
Readme.md Document env variables for tests 2021-01-01 21:51:17 -06:00

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)