Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48658
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 6 Feb 2010 20:19:27 +0000 (20:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 6 Feb 2010 20:19:27 +0000 (20:19 +0000)
Save test output in files; allow single test to be run
Patch provided by sebb

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@907291 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 1d1f091..38282ba 100644 (file)
--- a/build.xml
+++ b/build.xml
     <junit printsummary="yes" fork="yes" dir="." showoutput="yes">
       <classpath refid="tomcat.test.classpath" />
 
-      <formatter type="plain" usefile="false" />
+      <formatter type="plain" usefile="true" />
 
-      <batchtest haltonerror="true" haltonfailure="true">
+      <!-- If test.entry is defined, run a single test, otherwise run all valid tests -->
+      <test todir="${tomcat.build}/logs" name="${test.entry}" if="test.entry"/>
+      <batchtest todir="${tomcat.build}/logs" haltonerror="true" haltonfailure="true" unless="test.entry">
         <fileset dir="test" >
           <!-- Include all by default -->
           <include name="**/Test*.java" />