summaryrefslogtreecommitdiffstats
path: root/make/build-test.xml
diff options
context:
space:
mode:
Diffstat (limited to 'make/build-test.xml')
-rw-r--r--make/build-test.xml162
1 files changed, 112 insertions, 50 deletions
diff --git a/make/build-test.xml b/make/build-test.xml
index ce690187e..da6e3ec29 100644
--- a/make/build-test.xml
+++ b/make/build-test.xml
@@ -196,7 +196,7 @@
</pathconvert>
<var name="test.class.result.file" value="${results.test}/TEST-${test.class.fqn}.log"/>
<echo message="Testing ${test.class.fqn} -- ${test.class.result.file}"/>
- <apply dir="." executable="${java.home}/bin/java"
+ <apply dir="." executable="${jvmJava.exe}"
parallel="false"
timeout="${batchtest.timeout}"
vmlauncher="false"
@@ -225,7 +225,7 @@
<target name="junit.run.noui" depends="test.compile">
<!-- Test*NOUI* -->
- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
+ <junit jvm="${jvmJava.exe}" forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
<env key="${system.env.library.path}" path="${obj.all.paths}"/>
<jvmarg value="${junit.run.arg0}"/>
<jvmarg value="${junit.run.arg1}"/>
@@ -287,7 +287,7 @@
</pathconvert>
<var name="test.class.result.file" value="${results.test}/TEST-${test.class.fqn}.xml"/>
<echo message="Testing ${test.class.fqn} -- ${test.class.result.file}"/>
- <apply dir="." executable="${java.home}/bin/java"
+ <apply dir="." executable="${jvmJava.exe}"
parallel="false"
timeout="${batchtest.timeout}"
vmlauncher="false"
@@ -300,6 +300,7 @@
<arg line="${jvmDataModel.arg}"/>
<arg value="-Djava.library.path=${obj.all.paths}"/>
<arg line="${jvmarg.headless}"/>
+ <arg line="${jvmarg.mainthrd}"/>
<!--
<arg line="-Dnewt.debug.EDT"/>
-->
@@ -330,7 +331,7 @@
-->
<target name="junit.run.newt" depends="test.compile">
<!-- Test*NEWT* -->
- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
+ <junit jvm="${jvmJava.exe}" forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
<env key="${system.env.library.path}" path="${obj.all.paths}"/>
<jvmarg value="${junit.run.arg0}"/>
<jvmarg value="${junit.run.arg1}"/>
@@ -358,6 +359,8 @@
<fileset dir="${classes}">
<include name="${java.dir.junit}/**/Test*NEWT*"/>
<exclude name="**/*$$*"/>
+ <exclude name="**/*AWT*"/>
+ <exclude name="**/*SWT*"/>
</fileset>
<formatter usefile="false" type="brief"/>
<formatter usefile="true" type="xml"/>
@@ -367,7 +370,7 @@
<target name="junit.run.awt" depends="test.compile">
<!-- Test*AWT* -->
- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
+ <junit jvm="${jvmJava.exe}" forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
<env key="${system.env.library.path}" path="${obj.all.paths}"/>
<jvmarg value="${junit.run.arg0}"/>
<jvmarg value="${junit.run.arg1}"/>
@@ -402,9 +405,85 @@
</junit>
</target>
+ <target name="junit.run.newt.awt" depends="test.compile">
+ <!-- Test*AWT* -->
+ <junit jvm="${jvmJava.exe}" forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
+ <env key="${system.env.library.path}" path="${obj.all.paths}"/>
+ <jvmarg value="${junit.run.arg0}"/>
+ <jvmarg value="${junit.run.arg1}"/>
+ <jvmarg value="${jvmDataModel.arg}"/>
+ <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
+
+ <!--
+ <jvmarg value="-Dnewt.debug.EDT"/>
+ <jvmarg value="-Djogl.debug=all"/>
+ <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
+ <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
+ <jvmarg value="-Djogl.debug.GLSLState"/>
+ <jvmarg value="-Dnativewindow.debug=all"/>
+ <jvmarg value="-Dnewt.debug=all"/>
+ <jvmarg value="-verbose:jni"/>
+ <jvmarg value="-client"/>
+ <jvmarg value="-d32"/>
+ -->
+
+ <formatter usefile="false" type="plain"/>
+ <formatter usefile="true" type="xml"/>
+ <classpath refid="junit_jogl_awt.run.classpath"/>
+
+ <batchtest todir="${results.test}">
+ <fileset dir="${classes}">
+ <include name="${java.dir.junit}/**/newt/**/Test*AWT*"/>
+ <!--include name="${java.dir.junit}/**/newt/**/TestNewtEventModifiers*AWT*"/-->
+ <exclude name="**/*$$*"/>
+ </fileset>
+ <formatter usefile="false" type="brief"/>
+ <formatter usefile="true" type="xml"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="junit.run.newt.event" depends="test.compile">
+ <!-- Test*AWT* -->
+ <junit jvm="${jvmJava.exe}" forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
+ <env key="${system.env.library.path}" path="${obj.all.paths}"/>
+ <jvmarg value="${junit.run.arg0}"/>
+ <jvmarg value="${junit.run.arg1}"/>
+ <jvmarg value="${jvmDataModel.arg}"/>
+ <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
+
+ <!--
+ <jvmarg value="-Dnewt.debug.EDT"/>
+ <jvmarg value="-Djogl.debug=all"/>
+ <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
+ <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
+ <jvmarg value="-Djogl.debug.GLSLState"/>
+ <jvmarg value="-Dnativewindow.debug=all"/>
+ <jvmarg value="-Dnewt.debug=all"/>
+ <jvmarg value="-verbose:jni"/>
+ <jvmarg value="-client"/>
+ <jvmarg value="-d32"/>
+ -->
+
+ <formatter usefile="false" type="plain"/>
+ <formatter usefile="true" type="xml"/>
+ <!--classpath refid="junit_jogl_awt.run.classpath"/-->
+ <classpath refid="junit_jogl_swt.run.classpath"/>
+
+ <batchtest todir="${results.test}">
+ <fileset dir="${classes}">
+ <include name="${java.dir.junit}/**/newt/event/Test**"/>
+ <exclude name="**/*$$*"/>
+ </fileset>
+ <formatter usefile="false" type="brief"/>
+ <formatter usefile="true" type="xml"/>
+ </batchtest>
+ </junit>
+ </target>
+
<target name="junit.run.awt.singletest" depends="test.compile">
<!-- Test*AWT* -->
- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
+ <junit jvm="${jvmJava.exe}" forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
<env key="${system.env.library.path}" path="${obj.all.paths}"/>
<jvmarg value="${junit.run.arg0}"/>
<jvmarg value="${junit.run.arg1}"/>
@@ -456,7 +535,7 @@
</pathconvert>
<var name="test.class.result.file" value="${results.test}/TEST-${test.class.fqn}.xml"/>
<echo message="Testing ${test.class.fqn} -- ${test.class.result.file}"/>
- <apply dir="." executable="${java.home}/bin/java"
+ <apply dir="." executable="${jvmJava.exe}"
parallel="false"
timeout="${batchtest.timeout}"
vmlauncher="false"
@@ -472,7 +551,6 @@
<!--
<arg line="-Dnewt.debug.EDT"/>
-->
- <!-- arg line="com.jogamp.newt.util.MainThread"/-->
<arg line="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner"/>
<srcfile/>
<arg line="filtertrace=true"/>
@@ -520,7 +598,7 @@
</pathconvert>
<var name="test.class.result.file" value="${results.test}/TEST-${test.class.fqn}.xml"/>
<echo message="Testing ${test.class.fqn} -- ${test.class.result.file}"/>
- <apply dir="." executable="${java.home}/bin/java"
+ <apply dir="." executable="${jvmJava.exe}"
parallel="false"
timeout="${batchtest.timeout}"
vmlauncher="false"
@@ -531,15 +609,14 @@
<arg line="${junit.run.arg0}"/>
<arg line="${junit.run.arg1}"/>
<arg line="${jvmDataModel.arg}"/>
- <arg value="-Djava.library.path=${obj.all.paths}"/>
<arg line="${jvmarg.mainthrd}"/>
+ <arg value="-Djava.library.path=${obj.all.paths}"/>
<!--
<arg line="-Dnewt.debug.EDT"/>
<arg line="-Dnativewindow.debug=all"/>
<arg line="-Djogl.debug=all"/>
<arg line="-Dnewt.debug=all"/>
-->
- <!-- arg line="com.jogamp.newt.util.MainThread"/-->
<arg line="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner"/>
<srcfile/>
<arg line="filtertrace=true"/>
@@ -560,44 +637,6 @@
</for>
</target>
- <target name="junit.run.newt.awt" depends="test.compile">
- <!-- Test*AWT* -->
- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
- <jvmarg value="${junit.run.arg0}"/>
- <jvmarg value="${junit.run.arg1}"/>
- <jvmarg value="${jvmDataModel.arg}"/>
- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
- <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
-
- <!--
- <jvmarg value="-Dnewt.debug.EDT"/>
- <jvmarg value="-Djogl.debug=all"/>
- <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
- <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
- <jvmarg value="-Djogl.debug.GLSLState"/>
- <jvmarg value="-Dnativewindow.debug=all"/>
- <jvmarg value="-Dnewt.debug=all"/>
- <jvmarg value="-verbose:jni"/>
- <jvmarg value="-client"/>
- <jvmarg value="-d32"/>
- -->
-
- <formatter usefile="false" type="plain"/>
- <formatter usefile="true" type="xml"/>
- <classpath refid="junit_jogl_awt.run.classpath"/>
-
- <batchtest todir="${results.test}">
- <fileset dir="${classes}">
- <include name="${java.dir.junit}/**/newt/**/Test*AWT*"/>
- <!--include name="${java.dir.junit}/**/newt/**/TestNewtEventModifiers*AWT*"/-->
- <exclude name="**/*$$*"/>
- </fileset>
- <formatter usefile="false" type="brief"/>
- <formatter usefile="true" type="xml"/>
- </batchtest>
- </junit>
- </target>
-
<target name="junit.run.local" unless="isCrosscompilation" >
<antcall target="junit.run.noui" inheritRefs="true" inheritAll="true"/>
<antcall target="junit.run.newt.headless" inheritRefs="true" inheritAll="true"/>
@@ -632,6 +671,29 @@
<var name="junit_extra_classpath" value=""/>
</target>
+ <target name="junit.run.local.java7" if="jvmJava7.exe">
+ <var name="jvmJavaOrig.exe" value="${jvmJava.exe}"/>
+ <var name="jvmJava.exe" unset="true"/>
+ <var name="jvmJava.exe" value="${jvmJava7.exe}"/>
+
+ <antcall target="junit.run.local" inheritRefs="true" inheritAll="true"/>
+
+ <mkdir dir="${build}/test/results-java7"/>
+ <move todir="${build}/test/results-java7">
+ <fileset dir="." includes="*.png" />
+ <fileset dir="." includes="*.pam" />
+ <fileset dir="." includes="*.tga" />
+ </move>
+ <move todir="${build}/test/results-java7">
+ <fileset dir="${results.test}" includes="**" />
+ </move>
+ <mkdir dir="${results.test}"/>
+
+ <var name="jvmJava.exe" unset="true"/>
+ <var name="jvmJava.exe" value="${jvmJavaOrig.exe}"/>
+ <var name="jvmJavaOrig.exe" unset="true"/>
+ </target>
+
<target name="junit.run.remote.ssh.all" if="isCrosscompilation" unless="isAndroid">
<echo message="#! /bin/sh${line.separator}" append="false" file="${build.test}/targetcommand.sh" />
<echo message="${line.separator}
@@ -944,7 +1006,7 @@ ${line.separator}
</target>
<!-- target name="junit.run.tests" depends="junit.run.local.osx.d32, junit.run.local, junit.run.remote.ssh.all, junit.run.remote.adb"/-->
- <target name="junit.run.tests" depends="junit.run.local, junit.run.remote.ssh.all, junit.run.remote.adb"/>
+ <target name="junit.run.tests" depends="junit.run.local, junit.run.local.java7, junit.run.remote.ssh.all, junit.run.remote.adb"/>
<target name="junit.run.settings" depends="declare.common">
<delete quiet="true">