[jboss-cvs] JBossAS SVN: r57680 - projects/microcontainer/trunk/container

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Oct 15 00:37:05 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-10-15 00:37:03 -0400 (Sun, 15 Oct 2006)
New Revision: 57680

Modified:
   projects/microcontainer/trunk/container/build-test14.xml
Log:
Add a one-test target


Modified: projects/microcontainer/trunk/container/build-test14.xml
===================================================================
--- projects/microcontainer/trunk/container/build-test14.xml	2006-10-15 04:00:52 UTC (rev 57679)
+++ projects/microcontainer/trunk/container/build-test14.xml	2006-10-15 04:37:03 UTC (rev 57680)
@@ -240,6 +240,46 @@
 
    </target>
 
+   <target name="one-test" depends="init"
+      description="Execute all tests in the given test directory.">
+
+      <!-- The tests must be run with jdk1.4.x -->
+      <condition property="jdk14x">
+         <equals arg1="${ant.java.version}" arg2="1.4" />
+      </condition>
+      <fail message="jdk1.4.x must be used for the tests" unless="jdk14x"/>
+
+      <mkdir dir="${build.reports}"/>
+      <mkdir dir="${build.testlog}"/>
+      <!-- Remove the test.log so each run has a fresh log -->
+      <delete file="${build.testlog}/test.log"/>
+      <junit dir="${module.output}"
+         printsummary="yes"
+         haltonerror="false"
+         haltonfailure="false"
+         fork="true">
+
+         <sysproperty key="build.testlog" value="${build.testlog}"/>
+         <sysproperty key="jboss-junit-configuration" value="JDK1.4"/>
+
+         <classpath>
+            <pathelement location="${build.classes.retro}"/>
+            <pathelement location="${build.resources}/tests"/>
+            <path refid="tests.classpath"/>
+            <path refid="apache.xerces.classpath"/>
+         </classpath>
+
+         <formatter type="plain" usefile="true" extension="-jdk14.txt"/>
+         <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
+                    usefile="true" extension="-jdk14.xml"/>
+
+         <test todir="${build.reports}" name="${test}"
+               haltonerror="${junit.batchtest.haltonerror}"
+               haltonfailure="${junit.batchtest.haltonfailure}"
+               fork="${junit.batchtest.fork}"/>
+      </junit>
+   </target>
+
    <target name="memory-test" depends="most" description="Execute MemoryLeakTestCase">
       <mkdir dir="${build.reports}"/>
       <mkdir dir="${build.testlog}"/>




More information about the jboss-cvs-commits mailing list