JTReg tests results on other ports
Henri Gomez
henri.gomez at gmail.com
Thu Sep 29 13:49:55 PDT 2011
Which version of JTreg are you using ?
For me renaming to junit.jar made more tests to pass.
Le 29 sept. 2011 à 20:08, Scott Palmer <swpalmer at gmail.com> a écrit :
> That didn't make a difference.
>
> Scott
>
> On 2011-09-29, at 12:16 PM, Jonathan Gibbons wrote:
>
>> Try renaming it to "junit.jar".
>>
>> -- Jon
>>
>> On 09/29/2011 09:02 AM, Scott Palmer wrote:
>>> Tried it and still get the JUnit not available message. That is with junit-4.5.jar in the jtreg/lib folder.
>>>
>>>> ../../jtreg/linux/bin/jtreg -jdk:../build/macosx-universal/j2sdk-bundle/1.7.0.jdk/Contents/Home/ -v:summary test/java/lang
>>> …
>>>
>>> Test results: passed: 276; failed: 95; error: 11
>>> Report written to /Users/scott/dev/openjdk/jdk/JTreport/html/report.html
>>> Results written to /Users/scott/dev/openjdk/jdk/JTwork
>>>
>>> JT Harness : Tests that had errors
>>>
>>> Tests are grouped by their final status message.
>>> JUnit not available: see the FAQ or online help for details
>>>
>>> …
>>>
>>> Scott
>>>
>>> On 2011-09-28, at 4:06 PM, Jonathan Gibbons wrote:
>>>
>>>> It looks like we use JUnit 4.5.
>>>>
>>>> http://sourceforge.net/projects/junit/files/junit/4.5/junit-4.5.jar/download
>>>>
>>>> -- Jon
>>>>
>>>> On 09/28/2011 04:29 AM, Scott Palmer wrote:
>>>>> If a particular version is required that should be included too. I tried junit-4.8.2.jar, placing it in the jtreg/lib directory as instructed. The tests don't compile.
>>>>>
>>>>> e.g.:
>>>>>
>>>>> ----------System.err:(56/3093)----------
>>>>> /Users/scott/dev/openjdk/jdk/test/java/lang/String/q0001BasicString.java:31: error: package junit.framework does not exist
>>>>> import junit.framework.*;
>>>>> ^
>>>>> /Users/scott/dev/openjdk/jdk/test/java/lang/String/q0001BasicString.java:33: error: cannot find symbol
>>>>> public class q0001BasicString extends TestCase {
>>>>> ^
>>>>> symbol: class TestCase
>>>>> /Users/scott/dev/openjdk/jdk/test/java/lang/String/q0001BasicString.java:73: error: cannot find symbol
>>>>> public static Test suite() {
>>>>>
>>>>>
>>>>> Scott
>>>>>
>>>>>
>>>>> On 2011-09-27, at 10:54 PM, Jonathan Gibbons wrote:
>>>>>
>>>>>> Scott,
>>>>>>
>>>>>> You need to install a copy of junit.jar in the jtreg lib/ directory, or otherwise make it known to jtreg. For licensing reasons, we can no longer redistribute a copy of junit.jar with jtreg itself.
>>>>>>
>>>>>> If I recall correctly, you can also specify -nojunit to prevent jtreg from trying to run tests that would otherwise require JUnit.
>>>>>>
>>>>>> I note your comment that the FAQ on the openjdk website is out of date. I'll update it. The version of the FAQ bundled with jtreg should be more informative.
>>>>>>
>>>>>> -- Jon
>>
>
More information about the macosx-port-dev
mailing list