1 # VM test harness 2 3 There are two suites of tests in this directory: run-tests and gtests. 4 5 The run-tests are identified by directories named with with a numeric 6 prefix and containing an info.txt file. For most run tests, the 7 sources are in the "src" subdirectory. Sources found in the "src2" 8 directory are compiled separately but to the same output directory; 9 this can be used to exercise "API mismatch" situations by replacing 10 class files created in the first pass. The "src-ex" directory is 11 built separately, and is intended for exercising class loaders. 12 13 The gtests are in named directories and contain a .java source 14 file. 15 16 All tests in either suite can be run using the "art/test.py" 17 script. Additionally, run-tests can be run individidually. All of the 18 tests can be run on the build host, on a USB-attached device, or using 19 the build host "reference implementation". 20 21 To 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 ``` 74