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.