- Loading...
| CSS Stylesheet |
|---|
.wiki-content .confluenceTh,
.wiki-content .confluenceTd {
border: 2px solid #e76f00;
} |
| This feature was delivered into JDK 7u4 which was released April 2012 and was subsequently dissolved February 2020. Discussion about ports may be found on porters-dev. |
jtreg is the test harness used by the OpenJDK test framework. The script linux/jtreg is a shell script that runs fine on Mac OS X. It will run all the tests under $SRC/jdk/.
...
Example: running all the jdk tests (takes a long time):
| Code Block |
|---|
cd <path-to-macosx-port-source>/jdk/
<path to jtreg>/linux/bin/jtreg -jdk:../build/macosx-universal/j2sdk-bundle/1.7.0.jdk/Contents/Home/ -v:summary test
|
Example: running just the jdk java/lang tests (approximately 340 tests; completes in about 6 minutes):
| Code Block |
|---|
cd <path-to-macosx-port-source>/jdk/
<path to jtreg>/linux/bin/jtreg -jdk:../build/macosx-universal/j2sdk-bundle/1.7.0.jdk/Contents/Home/ -v:summary test/java/lang
|
...