Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: docs/testing.md

Issue 1347153006: [Docs] Add wiki content to Markdown docs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 V8 includes a test framework that allows you to test the engine. The framework l ets you run both our own test suites that are included with the source code and others, currently only the Mozilla tests.
2
3 ## Running the V8 tests
4
5 Before you run the tests, you will have to build V8 with GYP using the instructi ons [here](http://code.google.com/p/v8-wiki/wiki/BuildingWithGYP)
6
7 You can append `.check` to any build target to have tests run for it, e.g.
8 ```
9 make ia32.release.check
10 make ia32.check
11 make release.check
12 make check # builds and tests everything (no dot before "check"!)
13 ```
14
15 Before submitting patches, you should always run the quickcheck target, which bu ilds a fast debug build and runs only the most relevant tests:
16 ```
17 make quickcheck
18 ```
19
20 You can also run tests manually:
21 ```
22 tools/run-tests.py --arch-and-mode=ia32.release [--outdir=foo]
23 ```
24
25 Or you can run individual tests:
26 ```
27 tools/run-tests.py --arch=ia32 cctest/test-heap/SymbolTable mjsunit/delete-in-ev al
28 ```
29
30 Run the script with `--help` to find out about its other options, `--outdir` def aults to `out`. Also note that using the `cctest` binary to run multiple tests i n one process is not supported.
31
32 ## Running the Mozilla and Test262 tests
33
34 The V8 test framework comes with support for running the Mozilla as well as the Test262 test suite. To download the test suites and then run them for the first time, do the following:
35
36 ```
37 tools/run-tests.py --download-data mozilla
38 tools/run-tests.py --download-data test262
39 ```
40
41 To run the tests subsequently, you may omit the flag that downloads the test sui te:
42
43 ```
44 tools/run-tests.py mozilla
45 tools/run-tests.py test262
46 ```
47
48 Note that V8 fails a number of Mozilla tests because they require Firefox-specif ic extensions.
49
50 ## Running the WebKit tests
51
52 Sometimes all of the above tests pass but WebKit build bots fail. To make sure W ebKit tests pass run:
53
54 ```
55 tools/run-tests.py --progress=verbose --outdir=out --arch=ia32 --mode=release we bkit --timeout=200
56 ```
57
58 Replace --arch and other parameters with values that match your build options.
OLDNEW
« docs/building_with_gyp.md ('K') | « docs/source.md ('k') | docs/triaging_issues.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698