Skip to content

Run Tests

Wei Wu edited this page Aug 5, 2020 · 5 revisions

The v8 project has an extensive suite of tests cases. This repositories automated testing currently runs the following suites:

  • cctest
  • unittests
  • wasm-api-tests
  • wasm-js (temporarily removed)
  • wasm-spec-tests (temporarily removed)
  • mjsunit
  • intl
  • message
  • debugger
  • inspector
  • mkgrokdump

The official set of tests which must be verified before opening a pull request should be run using the script:

$V8_ROOT/v8$ bash ./v8-riscv-tools/test-riscv.sh

Run all of the tests using the following command. The directory specified in this command, out/riscv64.sim, should match the directory (specified when you built) of the configuration you would like to test.

cd $V8_ROOT/v8
tools/run-tests.py --outdir=out/riscv64.sim

Individual suites can be run as shown below:

tools/run-tests.py --outdir=out/riscv64.sim cctest

When a test fails, it should print the command used to run that one individual test. For example, to run a single cctest:

cd out/riscv64.sim
./cctest test-macro-assembler-riscv64/Ror
Clone this wiki locally