[aarch64-port-dev ] Running hotspot JTREG tests
Andy Johnson
andy.johnson at linaro.org
Tue Aug 27 12:09:05 PDT 2013
1. Download the pre-built binary for JTREG from
http://download.java.net/openjdk/jtreg/
I installed it in the jdk8 directory.
2. Create a shell script named do_hotspot_test with the following in the
jtreg directory:
/home/root/j2sdk-image/bin/java -jar lib/jtreg.jar -timeout:15
-vmoption:-Xmixed -othervm -v1 -a -ignore:quiet -w:work_hotspot/JTwork
-r:report_hotspot/JTreport -jdk:/home/root/j2sdk-image ../hotspot/test/$1
I run the cross_configure and cross_compile scripts in the aarch64-port
clone and then copy
build/linux-aarch64-normal-client-fastdebug/images/j2sdk-image to
/home/root in the OpenEmbedded image.
3. ./do_hotspot_test gc/8000311/Test8000311.java
4. Run the same command on the other two tests.
It is worth noting that the Makefile in hotspot/test doesn't run any of
these tests. The Makefile targets only run demos. You have to run them
using the jtreg harness directly, either individually or as a collection
(i.e. specifying ../hotspot/test will run all tests in the hotspot/test
directory).
More information about the aarch64-port-dev
mailing list