Using the Jonas Test Suite with CACAO
Many thanks go to Florent Benoit of JOnAS fame for providing a lot of help.
See also the companion page BuildingJonas.
What I had to do to compile the test suite
- get jonas test suite
- setup fake jdk
change build.properties
change build.xml
patch CACAO with the patch available on BootPackages
add an index to glibj.zip with the script available on BootPackages (or with jar -i)
- export environment variables
- invoke ant
Running the Test Suite
fix a classpath bug that makes HSQLDB drop the connection.
Getting the test suite
Get JOnAS test suite from CVS (This suite will match JOnAS CVS):
cvs -d :pserver:anonymous@cvs.jonas.forge.objectweb.org:/cvsroot/jonas co jonas_tests
For getting the test suite to match JOnAS 4.6.6:
cvs -d :pserver:anonymous@cvs.jonas.forge.objectweb.org:/cvsroot/jonas co -r JONAS_4_6_6 jonas_tests
Fake JDK Setup
See BuildingJonas for how to setup the fake jdk.
Changes to build.properties
Edit in build.properties the protocols from:
protocols.names=jrmp,jeremie,iiop,cmi
to
protocols.names=jeremie
Changes to build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jonas/jonas_tests/conformance/build.xml,v
retrieving revision 1.94
diff -u -p -r1.94 build.xml
--- build.xml 19 Oct 2005 05:59:08 -0000 1.94
+++ build.xml 6 May 2006 13:18:16 -0000
@@ -49,9 +49,9 @@
<property environment="myenv" />
<property name="jonas.root" value="${myenv.JONAS_ROOT}" />
<property file="${jonas.root}/build.properties" />
- <property name="javac.encoding" value="iso8859-1" />
+ <property name="javac.encoding" value="latin1" />
<property name="date.compare" value="${myenv.DATE}" />
- <property name="javac.encoding" value="iso8859-1"/>
+ <property name="javac.encoding" value="latin1"/>
<!-- Set the uncustomizable properties -->
<property name="src.dir" value="src" />
Environment Variables
Export the following environment variables:
- BOOTCLASSPATH
This should include vm.zip of CACAO and glibj.zip of Classpath.
- JAVA_HOME
- Set this to your fake jdk directory.
- JONAS_ROOT
- Where you have put JOnAS.
- PATH
Set this to $JAVA_HOME/bin:$PATH
Invoking ant
For compiling with ecj, setup your fake jdk as described in BuildingJonas and do:
ant -Dbuild.compiler=extJavac
For compiling with Jikes (may not work):
ant --usejikes