Running tests


This page explains the steps used to obtain test results displayed in the results page.

1. Setup

1. Bring over tests included in OpenJDK
$ hg clone http://hg.openjdk.java.net/jdk8u/jdk8u jdk8local
$ cd jdk8local
$ sh get_source.sh

2. Install JDK 8 Early Access bundle. Download it from http://jdk.java.net/8/

3. Build jtreg harness. Instruction is at http://openjdk.java.net/jtreg/build.html

 

2. Running tests

The tests present in jdk/test, langtools/test and hotspot/test need to be run separately for now. While jtreg manual explains differnt way to run the tests, here is one example to show how the tests were run to produce the results.

2.1 Running tests in jdk/test
$ jtreg -dir:{openjdk source top directory}/jdk/test -verbose:summary -exclude:{openjdk source top directory}/jdk/test/ProblemList.txt -conc:2 -Xmx512m -a -ignore:quiet -timeoutFactor:5 -agentvm -testjdk:{location of the test jdk} :jdk_core :jdk_svc :jdk_beans :jdk_imageio :jdk_sound :jdk_sctp javax/accessibility com/sun/java/swing javax/print sun/pisces com/sun/awt

2.2 Running tests in langtools/test
$ jtreg -dir:{openjdk source top directory}/langtools/test -verbose:summary -conc:auto -a -ignore:quiet -timeoutFactor:5 -agentvm -testjdk:{location of the test jdk} com tools

2.3 Running tests in hotspot/test
$ jtreg -dir:{openjdk source top directory}/hotspot/test -verbose:summary -conc:auto -a -ignore:quiet -timeoutFactor:5 -agentvm -testjdk:{location of the test jdk} compiler gc runtime sanity serviceability