JTReg tests results on other ports

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue Sep 27 18:31:54 PDT 2011


jtreg -help gives info about all the basic options.    You can also see 
the info in a browser with jtreg -onlinehelp

In its simplest form, you want

     jtreg -jdk:/JDK_TO_TEST  TESTS/

For example, if you're in the root of a forest for which you have 
completed a build, it will be something like:

     jtreg -jdk:build/linux-i586/j2sdk-image jdk/test/

But, that probably runs more tests than you want, and includes some 
manual tests, and some that may fail,
so you might also want to take advantage of the rules in test/Makefile.

For example, if you're in the root of a forest for which you have 
completed a build, it will be something like:

     cd test; make all

-- Jon



On 09/27/2011 06:13 PM, Scott Palmer wrote:
> Is there a document somewhere that explains how to setup jtreg?  I gave it a try a month ago, googled a bit, but found it was basically undocumented.
>
> Scott
>
> On 2011-09-27, at 8:11 PM, David Durrence wrote:
>
>> I have run most of the tests listed in this email and for the most part, the test cases are passing for me when I run those tests (on both 10.6.8 and 10.7.1).  Under what circumstances are the tests failing?  Here are some of my results:
>>
>> javaqa8:jdk mrj$ /Volumes/Data/mySVN/jtreg/linux/bin/jtreg -jdk:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/ -v:summary test/java/lang/instrument/
>> Passed: java/lang/instrument/appendToClassLoaderSearch/CircularityErrorTest.sh
>> Passed: java/lang/instrument/appendToClassLoaderSearch/ClassUnloadTest.sh
>> Passed: java/lang/instrument/appendToClassLoaderSearch/run_tests.sh
>> Passed: java/lang/instrument/BootClassPath/BootClassPathTest.sh
>> Passed: java/lang/instrument/PremainClass/InheritAgent0001.java
> ...
>



More information about the macosx-port-dev mailing list