Skip to content
Vladislav Ivanishin edited this page Mar 30, 2016 · 5 revisions

V8 includes a test framework that allows you to test the engine. The framework lets you run both V8's own test suites that are included with the source code and others, currently only the Mozilla tests. LLV8 cannot currently compile the entire JavaScript, so at the moment we care about a different set of tests.

LLV8 regression tests

To initiate llv8 testing simply run

$LLV8_ROOT/v8/llv8-regtests/runtests.py --exclude=c++ $D8_PATH/d8

Takes about 10-15 minutes on a modern x64 machine.

V8 tests

This section doesn't apply right now. However it might once we resolve #1.

You can also run tests manually:

tools/run-tests.py --arch-and-mode=x64.release [--outdir=foo]

Or you can run individual tests:

tools/run-tests.py --arch=x64 cctest/test-heap/SymbolTable mjsunit/delete-in-eval

Run the script with --help to find out about its other options, --outdir defaults to out. Also note that using the cctest binary to run multiple tests in one process is not supported.