summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-12-15 04:19:00 +0100
committerSven Gothel <[email protected]>2010-12-15 04:19:00 +0100
commit4047506a4a0755ea209b862bd1e6dc12cf59c8e7 (patch)
treeae75a6c068488aca3733656a7c13a929e44490e7 /make
parent1d85dc612f176bf2f34c9e32f455eeb1238a4902 (diff)
archive test results
Diffstat (limited to 'make')
-rw-r--r--make/build-test.xml (renamed from make/build-junit.xml)21
-rw-r--r--make/build.xml4
2 files changed, 18 insertions, 7 deletions
diff --git a/make/build-junit.xml b/make/build-test.xml
index 3a6f66e..222ab93 100644
--- a/make/build-junit.xml
+++ b/make/build-test.xml
@@ -87,6 +87,8 @@
<!-- Add the GlueGen tasks to ANT -->
<taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask"
classpathref="gluegen.classpath" />
+
+ <property name="test.archive.name" value="${archive.name}-test-results"/>
</target>
<target name="java.build" depends="java.generate">
@@ -169,6 +171,12 @@
</macrodef>
<target name="junit.compile.check" depends="init">
+ <delete quiet="true">
+ <fileset dir="${build}/test/results" includes="**"/>
+ <fileset file="${build}/${test.archive.name}.zip"/>
+ </delete>
+ <mkdir dir="${build}/test/results"/>
+
<uptodate property="junit.compile.skip">
<srcfiles dir= "." includes="*.xml"/>
<srcfiles dir= "${test.base.dir}" includes="**"/>
@@ -185,11 +193,6 @@
</target>
<target name="junit.run" depends="init,gluegen.cpptasks.detect.os">
- <delete quiet="true">
- <fileset dir="${build}/test/results" includes="**"/>
- </delete>
- <mkdir dir="${build}/test/results"/>
-
<!-- Use absolute path -->
<property name="gluegen.lib.abs" location="${gluegen.lib}" />
<property name="build_t.lib.abs" location="${build_t.lib}" />
@@ -219,6 +222,7 @@
<formatter usefile="true" type="xml"/>
</batchtest>
</junit>
+ <antcall target="test-zip-archive" inheritRefs="true" />
</target>
<!--
@@ -360,4 +364,11 @@
-->
+ <!-- updates / create the test results zip file -->
+ <target name="test-zip-archive" depends="init">
+ <zip destfile="${build}/${test.archive.name}.zip" update="true">
+ <zipfileset dir="${build}/test/results" prefix="${archive.name}/test-results"/>
+ </zip>
+ </target>
+
</project>
diff --git a/make/build.xml b/make/build.xml
index c0ce8cd..0fa81a8 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -713,11 +713,11 @@
</target>
<target name="junit.compile" depends="init">
- <ant antfile="build-junit.xml" target="junit.compile"/>
+ <ant antfile="build-test.xml" target="junit.compile"/>
</target>
<target name="junit.run" depends="junit.compile">
- <ant antfile="build-junit.xml" target="junit.run"/>
+ <ant antfile="build-test.xml" target="junit.run"/>
</target>
<target name="javadoc" depends="init">