JTReg tests results on other ports
Scott Palmer
swpalmer at gmail.com
Tue Sep 27 19:38:40 PDT 2011
The issue is this error which occurs quite a bit when I try to run the tests:
JUnit not available: see the FAQ or online help for details
Except the only mention in the FAQ (http://openjdk.java.net/jtreg/faq.html) is:
1.13. Why not use JUnit?
JUnit was not around when we started writing tests for JDK. And, the test tag specification has been specifically designed for testing JDK, with support for testing applets, command-line interfaces, and so on, as well as simple API tests.
And by now, there are many thousands of tests written for jtreg, so it would not be practical to convert to JUnit.
Not exactly helpful.
Scott
On 2011-09-27, at 9:31 PM, Jonathan Gibbons wrote:
> 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