blob: da74642e33ba3f71508bad4baf220b24a36c2efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
The v8 tests are actually implemented in v8test.[h|cpp]. There are also QtTest
(tst_v8.cpp) and non-Qt (v8main.cpp) stubs provided to run these tests. This
is done to allow the tests to be run both in the Qt CI system, and manually
without a build of Qt. The latter is necessary to run them against more exotic
build of V8, like the ARM simulator.
To build the non-Qt version of the tests, first build a debug or release V8
library under src/3rdparty/v8 using gyp build.
For example:
make x64.release
NOTE: If you get error message like "/bin/sh: build/gyp/gyp: not found" first use:
make dependencies
For detailed description about gyp build, see:
http://code.google.com/p/v8/wiki/BuildingWithGYP
After the successful build use Makefile.nonqt under tests/auto/v8 for testing.
For example:
make -f Makefile.nonqt x64.release
./v8test_x64_release
The following targets are available for non-Qt testing:
ia32-release: Build the tests with -O2 -m32 and link against libv8_base and
libv8_snapshot.
ia32-debug: Build the tests with -g -m32 and link against libv8_base and
libv8_snapshot.
x64-release: Build the tests with -O2 and link against libv8_base and
libv8_snapshot.
x64-debug: Build the tests with -g and link against libv8_base and
libv8_snapshot.
mips-release: Build the tests with -O2 -m32 and link against libv8_base and
libv8_nosnapshot.
mips-debug: Build the tests with -g and link against libv8_base and
libv8_nosnapshot.
arm-release: Build the tests with -O2 -m32 and link against libv8_base and
libv8_nosnapshot.
arm-debug: Build the tests with -g and link against libv8_base and
libv8_nosnapshot.
NOTE: It is necessary to build the corresponding V8 libraries for each target. For
example the arm simulator testing in release mode (arm-release) needs:
make arm.release
|