Browse Source

Document env variables for tests

Fabian 3 years ago
parent
commit
2697aa6192
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tests/Readme.md

+ 8 - 0
tests/Readme.md

@@ -15,3 +15,11 @@ following list is roughtly sorted from most interesting/useful to least.
 - [expect](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)