Revision: 15424
Author: [email protected]
Date: Mon Jul 1 07:26:35 2013
Log: Edited wiki page Testing through web user interface.
http://code.google.com/p/v8/source/detail?r=15424
Modified:
/wiki/Testing.wiki
=======================================
--- /wiki/Testing.wiki Mon Jul 1 07:11:49 2013
+++ /wiki/Testing.wiki Mon Jul 1 07:26:35 2013
@@ -2,28 +2,29 @@
V8 includes a test framework that allows you to test the engine. The
framework lets you run both our own test suites that are included with the
source code and others, currently only the Mozilla tests.
-*Please note: the instructions below are deprecated, as they assume you
use SCons to build V8. You should use GYP instead. Please follow the
instructions at [http://code.google.com/p/v8/wiki/BuildingWithGYP
BuildingWithGYP], in particular the
[http://code.google.com/p/v8/wiki/BuildingWithGYP#Testing Testing] section.*
-
-
== Running the V8 tests ==
-V8 comes with two test suites: a set of unit tests written in C++, the
_cctest_ suite, and a set of !JavaScript tests, the _mjsunit_ suite. You
can run them by running the Python test script:
+Before you run the tests, you will have to build V8 with GYP using the
instructions [http://code.google.com/p/v8/wiki/BuildingWithGYP here]
+You can append {{{.check}}} to any build target to have tests run for it,
e.g.
{{{
-tools/run-tests.py
+make ia32.release.check
+make ia32.check
+make release.check
+make check # builds and tests everything (no dot before "check"!)
}}}
-This will automatically build v8 and run both internal test suites in
release (that is, optimized) mode. The framework assigns a path to each
test, and to run specific tests you can specify the paths of the tests you
would like to run, for instance:
-
+You can also run tests manually:
{{{
-tools/run-tests.py cctest/test-heap/SymbolTable mjsunit/delete-in-eval
+tools/run-tests.py --arch-and-mode=ia32.release [--outdir=foo]
}}}
-The framework can also handle partial paths and the wildcard `*`, so
giving `cctest/test-heap` will cause it to run all heap tests. The test
script takes a number of other options, including timeouts (`--timeout`)
and build mode (`--mode=[debug|release]`). To see all options call
-
+Or you can run individual tests:
{{{
-tools/test.py --help
+tools/run-tests.py --arch=ia32 cctest/test-heap/SymbolTable
mjsunit/delete-in-eval
}}}
+
+Run the script with {{{--help}}} to find out about its other options.
--outdir defaults to {{{out}}}.
== Running the Mozilla tests ==
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.