Repository: cassandra
Updated Branches:
  refs/heads/trunk e8e90406f -> c3678f6b6


Add ant target for running a list of test classes

patch by Russ Hatch; reviewed by Ariel Weisberg for CASSANDRA-10651


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c3678f6b
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c3678f6b
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c3678f6b

Branch: refs/heads/trunk
Commit: c3678f6b64739da2fb4f96973dbe0587926b6545
Parents: e8e9040
Author: Russ Hatch <[email protected]>
Authored: Wed Nov 4 13:58:14 2015 -0700
Committer: Aleksey Yeschenko <[email protected]>
Committed: Thu Nov 5 22:55:45 2015 +0000

----------------------------------------------------------------------
 build.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c3678f6b/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 8974a8f..b20ee71 100644
--- a/build.xml
+++ b/build.xml
@@ -56,6 +56,7 @@
     <property name="test.conf" value="${test.dir}/conf"/>
     <property name="test.data" value="${test.dir}/data"/>
     <property name="test.name" value="*Test"/>
+    <property name="test.classlistfile" value="testlist.txt"/>
     <property name="benchmark.name" value=""/>
     <property name="test.methods" value=""/>
     <property name="test.runners" value="1"/>
@@ -1687,6 +1688,17 @@
     <testparallel testdelegate="testlist"/>
   </target>
 
+  <!-- run a list of tests as provided in -Dtest.classlistfile (or default of 
'testnames.txt')
+  The class list file should be one test class per line, with the path 
starting after test/unit
+  e.g. org/apache/cassandra/hints/HintMessageTest.java -->
+  <target name="testclasslist" depends="build-test" description="Parallel-run 
tests given in file -Dtest.classlistfile (one-class-per-line, e.g. 
org/apache/cassandra/db/SomeTest.java)">
+    <path id="all-test-classes-path">
+      <fileset dir="${test.unit.src}" includesfile="${test.classlistfile}"/>
+    </path>
+    <property name="all-test-classes" refid="all-test-classes-path"/>
+    <testparallel testdelegate="testlist"/>
+  </target>
+
   <!-- run microbenchmarks suite -->
   <target name="microbench" depends="build-test">
       <java classname="org.openjdk.jmh.Main"

Reply via email to