[jboss-cvs] JBossAS SVN: r104348 - trunk/testsuite/imports/config.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 29 17:26:54 EDT 2010


Author: bstansberry at jboss.com
Date: 2010-04-29 17:26:54 -0400 (Thu, 29 Apr 2010)
New Revision: 104348

Modified:
   trunk/testsuite/imports/config/tests-clustering.xml
Log:
Add a convenience target for executing the tests in a custom patternset

Modified: trunk/testsuite/imports/config/tests-clustering.xml
===================================================================
--- trunk/testsuite/imports/config/tests-clustering.xml	2010-04-29 21:24:47 UTC (rev 104347)
+++ trunk/testsuite/imports/config/tests-clustering.xml	2010-04-29 21:26:54 UTC (rev 104348)
@@ -61,6 +61,12 @@
   <patternset id="cluster.excludes">
     <exclude name="org/jboss/test/cluster/**/*TestCase.class"/>
   </patternset>
+  <!-- Modify this patternset to get a custom set of tests to run via the
+       tests-cluster-custom target -->
+  <patternset id="cluster.custom.includes">
+  	<include name="org/jboss/test/cluster/defaultcfg/test/*TestCase.class"/>
+   <include name="org/jboss/test/cluster/multicfg/ejb2/test/*TestCase.class"/>
+  </patternset>
 
   <!--
     | Targets
@@ -497,6 +503,30 @@
    <server:stop name="cluster-${jboss-junit-configuration}-1"/>
   </target>
 
+	<!-- Runs a custom set of tests. Change definition of cluster.custom.includes
+	     to control exactly what is run. -->
+	<target name="tests-clustering-custom" depends="init">
+
+	   <property name="jboss-junit-configuration" value="udp"/>
+
+	   <antcall target="tests-clustering-configure" inheritRefs="true"/>
+
+	   <server:start name="cluster-${jboss-junit-configuration}-0"/>
+	   <server:start name="cluster-${jboss-junit-configuration}-1"/>
+
+	   <echo message="Going to call target tests-clustering-unit"/>
+
+	   <antcall target="tests-clustering-unit" inheritRefs="true">
+	     <param name="cluster.includes.refid" value="cluster.custom.includes"/>
+	     <param name="jboss-junit-configuration" value="Default-${jboss-junit-configuration}"/>
+	     <param name="jbosstest.cluster.node0.config" value="cluster-${jboss-junit-configuration}-0"/>
+	     <param name="jbosstest.cluster.node1.config" value="cluster-${jboss-junit-configuration}-1"/>
+	   </antcall>
+
+	   <server:stop name="cluster-${jboss-junit-configuration}-0"/>
+	   <server:stop name="cluster-${jboss-junit-configuration}-1"/>
+	  </target>
+
   <!-- Runs only the basic http tests (ASYNC, no BR) -->
   <target name="tests-clustering-http" depends="init">
 




More information about the jboss-cvs-commits mailing list