Harmony has passed all testcases provided by JUnit 4.1.

With J9 VM, harmony passes both on windows xp2 and redhat enterprise 4.0. While drlvm fails on linux.

HowTo:

  1. Download junit4.1 from http://prdownloads.sourceforge.net/junit/junit4.1.zip?download

  2. Unzip it to a directory called JUNIT_ROOT.
  3. Run below script to test it:
        set PATH=PATH_TO_JRE_BIN
        set CLASSPATH=JUNIT_ROOT;JUNIT_ROOT/junit-4.1.jar
        java junit.tests.AllTests
        java junit.samples.AllTests

Performance:

VM

Windows xp2

Redhat Enterprise4

RI

0.985 0.921

0.75 0.717

J9

4.25 2.61

2.888 2.897

drlvm

8.437 5.359

/

*The former data represents the time to run junit.tests.AllTests. The latter,junit.samples.AllTests.

Drlvm fails on RedHat Enterprise 4.0 with such output:

.........................................
.........................................
..............E..E....
Time: 5.157
There were 2 errors:
1) testActiveRepeatedTest(junit.tests.extensions.ActiveTestTest)java.lang.OutOfMemoryError: Failed to create new thread
        at java.lang.Thread.start(Unknown Source)
        at junit.extensions.ActiveTestSuite.runTest(ActiveTestSuite.java:41)
        at junit.extensions.ActiveTestSuite.run(ActiveTestSuite.java:34)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:25)
        at junit.extensions.TestDecorator.run(TestDecorator.java:33)
        at junit.extensions.RepeatedTest.run(RepeatedTest.java:29)
        at junit.tests.extensions.ActiveTestTest.testActiveRepeatedTest(ActiveTestTest.java:32)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)
        at junit.tests.AllTests.main(AllTests.java:13)
2) testActiveRepeatedTest1(junit.tests.extensions.ActiveTestTest)java.lang.OutOfMemoryError: Failed to create new thread
        at java.lang.Thread.start(Unknown Source)
        at junit.extensions.ActiveTestSuite.runTest(ActiveTestSuite.java:41)
        at junit.extensions.ActiveTestSuite.run(ActiveTestSuite.java:34)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:25)
        at junit.extensions.TestDecorator.run(TestDecorator.java:33)
        at junit.extensions.RepeatedTest.run(RepeatedTest.java:29)
        at junit.tests.extensions.ActiveTestTest.testActiveRepeatedTest1(ActiveTestTest.java:50)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)
        at junit.tests.AllTests.main(AllTests.java:13)

FAILURES!!!
Tests run: 102,  Failures: 0,  Errors: 2

JUnit (last edited 2009-09-20 21:55:27 by localhost)