Pages

Friday, January 06, 2006

Open Source Java tool chain: CDK compiles and JUnit tests run

While waiting for a Dragon calculation to finish (it does not work for molecules with more than 300 atoms!), I updated CDK's build.xml to support gjdoc. The build script is now able to compile the custom doclets we use for creating the src/*.javafiles and others from the Java source files. And using gij I could also run CDK's 1688 JUnit tests!

On my Debian GNU/Linux sid chroot, I have java-gcj-compat installed allowing me to do (thanx man-di!):

JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0 ant -Dbuild.compiler=gcj runDoclet
JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0 ant -Dbuild.compiler=gcj test-all

The first command creates the custom doclets, while the second command compiles the CDK and runs the JUnit tests. For Classpath developers: here's how to check out the cdk module from CVS.

The results are interesting: while Sun's JVM gives 11 problems, gij gives 399 problems. The test-all target creates a reports/result.txt document listing all failing tests, and I've put the diff -u for the two JVMs online. I will make diffs for jamvm, kaffe and cacao too.

I hope this gives the free Java community extra feedback on the excellent work they are doing.

2 comments:

  1. The tests with kaffe 1.1.6 are just finished, and the diff with the SUN JVM results is found here.

    ReplyDelete
  2. Great! thanks a lot for doing this, Egon. You should tell Mark Wielaard to add you to Planet Classpath, so that we get the good news with our daily planet :)

    I've looked at the Kaffe test failures, and it seems tome that the tests assume the existence of apache XML parsers. You could try either (pre)setting the parser configuration in the tests to use the GNU parsers, or you could add the Apache parsers to Kaffe's (boot)classpath to see how well it works. I'm interested if Kaffe would come even closer to the JDK :)

    cheers,
    dalibor topic

    ReplyDelete