Explorar o código

HADOOP-660. Permit specification of junit test output format. Contributed by Nigel.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@469691 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting %!s(int64=18) %!d(string=hai) anos
pai
achega
c2a69e9656
Modificáronse 3 ficheiros con 6 adicións e 2 borrados
  1. 3 0
      CHANGES.txt
  2. 2 1
      build.xml
  3. 1 1
      src/contrib/build-contrib.xml

+ 3 - 0
CHANGES.txt

@@ -111,6 +111,9 @@ Trunk (unreleased changes)
     filesystem size statistics.  Also improve web layout.
     (Raghu Angadi via cutting)
 
+31. HADOOP-660.  Permit specification of junit test output format.
+    (Nigel Daley via cutting)
+
 
 Release 0.7.2 - 2006-10-18
 

+ 2 - 1
build.xml

@@ -43,6 +43,7 @@
   <property name="test.include" value="Test*"/>
   <property name="test.classpath.id" value="test.classpath"/>
   <property name="test.output" value="no"/>
+  <property name="test.junit.output.format" value="plain"/>
 
   <property name="libhdfs.test.conf.dir" value="${libhdfs.src}/tests/conf"/>
   <property name="libhdfs.test.log.dir" value="${build.libhdfs}/tests/logs"/>
@@ -329,7 +330,7 @@
       <sysproperty key="test.src.dir" value="${test.src.dir}"/>
       <sysproperty key="hadoop.log.dir" value="."/>
       <classpath refid="${test.classpath.id}"/>
-      <formatter type="plain" />
+      <formatter type="${test.junit.output.format}" />
       <batchtest todir="${test.build.dir}" unless="testcase">
         <fileset dir="${test.src.dir}"
 	         includes="**/${test.include}.java"

+ 1 - 1
src/contrib/build-contrib.xml

@@ -152,7 +152,7 @@
       <sysproperty key="hadoop.test.localoutputfile" value="${hadoop.test.localoutputfile}"/>
       <sysproperty key="hadoop.log.dir" value="${hadoop.log.dir}"/> 
       <classpath refid="test.classpath"/>
-      <formatter type="plain" />
+      <formatter type="${test.junit.output.format}" />
       <batchtest todir="${build.test}" unless="testcase">
         <fileset dir="${src.test}"
                  includes="**/Test*.java" excludes="**/${test.exclude}.java" />