diff options
Diffstat (limited to 'test/build.xml')
-rw-r--r-- | test/build.xml | 59 |
1 files changed, 25 insertions, 34 deletions
diff --git a/test/build.xml b/test/build.xml index 4445eb5..9b037f9 100644 --- a/test/build.xml +++ b/test/build.xml @@ -33,51 +33,42 @@ * design, construction, operation or maintenance of any nuclear facility. --> -<project name="Sun Games Initiative Client Technologies" basedir="." default="all"> +<project name="tests" basedir="." default="all"> <target name="init"> - <mkdir dir="classes"/> + <mkdir dir="classes"/> </target> + <property name="junit.path" value="${basedir}/${gluegen.root}/make/lib/junit.jar"/> + <target name="compile" depends="init"> - <javac debug="true" srcdir="./src" classpath="../build/joal.jar;lib/junit.jar" destdir="classes"/> + <javac debug="true" srcdir="./src" destdir="classes" includeantruntime="false" + classpath="${gluegen.root}/build/gluegen-rt.jar;../build/joal.jar;${junit.path}"/> </target> <target name="clean"> - <delete dir="classes"/> + <delete dir="classes"/> </target> - <target name="runOpenALTest" depends="compile"> - <java classname="OpenALTest" fork="true"> - <classpath> - <pathelement location="../build/joal.jar"/> - <pathelement location="lib/junit.jar"/> - <pathelement location="classes"/> - </classpath> - <jvmarg value="-Djava.library.path=${basedir}/../build/obj"/> - </java> - </target> + <target name="test" depends="compile"> + <mkdir dir="${basedir}/results"/> + <junit forkmode="once" showoutput="true" fork="true" includeAntRuntime="true"> + <jvmarg value="-Djava.library.path=${basedir}/${gluegen.root}/build/obj:${basedir}/../build/obj"/> + <batchtest todir="${basedir}/results"> + <fileset dir="${basedir}/classes"> + <include name="com/jogamp/openal/**Test*"/> + <!--TODO convert to junit --> + <exclude name="com/jogamp/openal/OpenALTest*"/> + <exclude name="com/jogamp/openal/Sound3DTest*"/> + </fileset> + <formatter usefile="false" type="plain"/> + <formatter usefile="true" type="xml"/> + </batchtest> + <classpath> + <path path="${gluegen.root}/build/gluegen-rt.jar:../build/joal.jar:${basedir}/classes:${junit.path}"/> + </classpath> + </junit> - <target name="runALTest" depends="compile"> - <java classname="junit.textui.TestRunner" fork="true"> - <classpath> - <pathelement location="../build/joal.jar"/> - <pathelement location="lib/junit.jar"/> - <pathelement location="classes"/> - </classpath> - <jvmarg value="-Djava.library.path=${basedir}/../build/obj"/> - <arg value="com.jogamp.openal.ALTest" /> - </java> </target> - <target name="runSound3DTest" depends="compile"> - <java classname="Sound3DTest" fork="true"> - <classpath> - <pathelement location="../build/joal.jar"/> - <pathelement location="lib/junit.jar"/> - <pathelement location="classes"/> - </classpath> - <jvmarg value="-Djava.library.path=${basedir}/../build/obj"/> - </java> - </target> </project> |