aboutsummaryrefslogtreecommitdiffstats
path: root/make/build-junit.xml
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2011-02-02 04:37:46 +0100
committerSven Gothel <[email protected]>2011-02-02 04:37:46 +0100
commit4e29ab96c2e5f934b7441f0df5bc976accac7c59 (patch)
tree251bea577b53cdc7241bdb88f709f28838f5026d /make/build-junit.xml
parenta247475fa8834a289de0d86b6928b2c191ebf50d (diff)
Added two simple SWT unit tests.
Added a test that draws one triangle, using both the SWT canvas and the AWT canvas with the SWT_AWT bridge. Also added the SWT JARs for each platform to make/lib (since that's where antlr.jar and junit.jar were stored). Modified the make files to build and run the new tests.
Diffstat (limited to 'make/build-junit.xml')
-rw-r--r--make/build-junit.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/make/build-junit.xml b/make/build-junit.xml
index c7e2d558b..a271ac09e 100644
--- a/make/build-junit.xml
+++ b/make/build-junit.xml
@@ -226,6 +226,7 @@
<fileset dir="${classes}">
<include name="${java.dir.test}/**/Test*AWT*"/>
<exclude name="**/*$$*"/>
+ <exclude name="**/*SWT*"/>
<exclude name="**/newt/**"/>
</fileset>
<formatter usefile="false" type="brief"/>
@@ -234,6 +235,41 @@
</junit>
</target>
+ <target name="junit.run.swt" depends="junit.run.setup" description="Runs all SWT and SWT_AWT tests.">
+ <!-- Test*SWT* -->
+ <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
+ <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_swt.run.classpath"/>
+
+ <batchtest todir="${results.junit}">
+ <fileset dir="${classes}">
+ <include name="${java.dir.test}/**/Test*SWT*"/>
+ <exclude name="**/*$$*"/>
+ <exclude name="**/newt/**"/>
+ </fileset>
+ <formatter usefile="false" type="brief"/>
+ <formatter usefile="true" type="xml"/>
+ </batchtest>
+ </junit>
+ </target>
+
<!-- NEWT is currently not supported on OSX -->
<target name="junit.run.newt.awt" depends="junit.run.setup" unless="isOSX">
<!-- Test*AWT* -->