diff options
Diffstat (limited to 'tools/centipede/targets/test.xtarget')
-rw-r--r-- | tools/centipede/targets/test.xtarget | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/centipede/targets/test.xtarget b/tools/centipede/targets/test.xtarget new file mode 100644 index 0000000000..6ff67dd0f5 --- /dev/null +++ b/tools/centipede/targets/test.xtarget @@ -0,0 +1,40 @@ + <!-- =================================================================== --> + <!-- Test targets --> + <!-- =================================================================== --> + <target name="test" depends="compile" description="Perform jUnit tests"> + <mkdir dir="${build.test}"/> + <!-- Copy test files to build test dir --> + <copy todir="${build.test}" filtering="on"> + <fileset dir="${test.dir}/${test.specific}"/> + </copy> + <!-- Compile tests --> + <javac srcdir="${build.test}" + destdir="${build.test}" + debug="${debug}" + optimize="${optimize}" + deprecation="${deprecation}" + target="${target.vm}"> + <classpath refid="classpath"/> + <classpath> + <pathelement path="${build.dest}" /> + </classpath> + </javac> + <junit printsummary="yes" haltonfailure="yes" fork="yes"> + <classpath> + <pathelement location="${build.test}" /> + <pathelement location="${build.dest}" /> + <pathelement path="${java.class.path}" /> + </classpath> + <classpath refid="classpath"/> + <formatter type="plain" usefile="no" /> + <batchtest> + <fileset dir="${build.test}"> + <include name="**/test/*TestCase.class"/> + <include name="**/*Test.class" /> + <include name="**/Test*.class" /> + <exclude name="**/AllTest.class" /> + <exclude name="**/*$$*Test.class" /> + </fileset> + </batchtest> + </junit> + </target> |