blob: c68b40b1350b1752e5269827e32eb71aab304c4f [file] [log] [blame] [view]
Orion Hodson42f16582017-07-12 11:55:22 +01001# VM test harness
2
3There are two suites of tests in this directory: run-tests and gtests.
4
5The run-tests are identified by directories named with with a numeric
6prefix and containing an info.txt file. For most run tests, the
7sources are in the "src" subdirectory. Sources found in the "src2"
8directory are compiled separately but to the same output directory;
9this can be used to exercise "API mismatch" situations by replacing
10class files created in the first pass. The "src-ex" directory is
11built separately, and is intended for exercising class loaders.
12
13The gtests are in named directories and contain a .java source
14file.
15
16All tests in either suite can be run using the "art/test.py"
17script. Additionally, run-tests can be run individidually. All of the
18tests can be run on the build host, on a USB-attached device, or using
19the build host "reference implementation".
20
21To see command flags run:
22
23```sh
24$ art/test.py -h
25```
26
27## Running all tests on the build host
28
29```sh
30$ art/test.py --host
31```
32
33## Running all tests on the target device
34
35```sh
36$ art/test.py --target
37```
38
39## Running all gtests on the build host
40
41```sh
42$ art/test.py --host -g
43```
44
45## Running all gtests on the target device
46
47```sh
48$ art/test.py --target -g
49```
50
51## Running all run-tests on the build host
52
53```sh
54$ art/test.py --host -r
55```
56
57## Running all run-tests on the target device
58
59```sh
60$ art/test.py --target -r
61```
62
63## Running one run-test on the build host
64
65```sh
66$ art/test.py --host -r -t 001-HelloWorld
67```
68
69## Running one run-test on the target device
70
71```sh
72$ art/test.py --target -r -t 001-HelloWorld
73```