Browse Source

commit 208a6df27b635ec0c9b2cf0d2dc5313fcd0c072f
Author: Konstantin Boudnik <cos@apache.org>
Date: Thu Aug 12 11:39:28 2010 -0700

HDFS-1311 from https://issues.apache.org/jira/secure/attachment/12451933/y20.backport.patch

+++ b/YAHOO-CHANGES.txt
+ HDFS-1311. Running tests with 'testcase' cause triple execution of the
+ same test case (cos)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077653 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 năm trước cách đây
mục cha
commit
8ffe2adbac
1 tập tin đã thay đổi với 18 bổ sung4 xóa
  1. 18 4
      build.xml

+ 18 - 4
build.xml

@@ -1002,11 +1002,24 @@
   </macrodef>
 
   <target name="test-core" depends="test-commit, test-smoke,
-    test-core-excluding-commit-and-smoke, jar-test"
+    test-core-excluding-commit-and-smoke,
+    test-core-all-withtestcaseonly, jar-test"
     description="Run core unit tests">
   </target>
 
-  <target name="test-core-excluding-commit-and-smoke" depends="jar-test">
+  <target name="test-core-all-withtestcaseonly" depends="jar-test" if="testcase">
+    <macro-test-runner test.file="${test.all.tests.file}"
+                       classpath="${test.classpath.id}"
+                       test.dir="${test.build.dir}"
+                       fileset.dir="${test.src.dir}"
+                       test.krb5.conf="java.security.krb5.conf"
+                       test.krb5.conf.filename="${test.src.dir}/krb5.conf"
+                       >
+    </macro-test-runner>
+  </target>
+
+  <target name="test-core-excluding-commit-and-smoke" depends="jar-test"
+    unless="testcase">
     <macro-test-runner test.file="${test.all.tests.file}"
                        classpath="${test.classpath.id}"
                        test.dir="${test.build.dir}"
@@ -1019,7 +1032,8 @@
   </target>   
 
   <target name="test-commit" depends="jar-test" 
-    description="Run approx 10-minute set of unit tests prior to commiting">
+    description="Run approx 10-minute set of unit tests prior to commiting"
+    unless="testcase">
     <macro-test-runner test.file="${test.commit.tests.file}"
                        classpath="${test.classpath.id}"
                        test.dir="${test.build.dir}"
@@ -1032,7 +1046,7 @@
 
   <target name="test-smoke" depends="jar-test"
     description="Run approx 30-minute set of functional tests prior to
-      guarantee that the build is not DOA">
+      guarantee that the build is not DOA" unless="testcase">
     <macro-test-runner test.file="${test.smoke.tests.file}"
                        classpath="${test.classpath.id}"
                        test.dir="${test.build.dir}"