[Jboss-cvs] JBossAS SVN: r56083 - branches/Branch_4_0/testsuite

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 18 17:49:45 EDT 2006


Author: bstansberry at jboss.com
Date: 2006-08-18 17:49:44 -0400 (Fri, 18 Aug 2006)
New Revision: 56083

Modified:
   branches/Branch_4_0/testsuite/build.xml
Log:
Create a one-cluster-test target

Modified: branches/Branch_4_0/testsuite/build.xml
===================================================================
--- branches/Branch_4_0/testsuite/build.xml	2006-08-18 21:37:53 UTC (rev 56082)
+++ branches/Branch_4_0/testsuite/build.xml	2006-08-18 21:49:44 UTC (rev 56083)
@@ -585,6 +585,9 @@
     <exclude name="org/jboss/test/testbeancluster/test/*TestCase.class"/>
     <exclude name="org/jboss/test/ha/farm/test/*TestCase.class" />
   </patternset>
+  <patternset id="one.test.includes">
+    <include name="${test}"/>
+  </patternset>
   <patternset id="apache_tomcat.cluster.includes">
     <include name="org/jboss/test/cluster/apache_tomcat/*TestCase.class"/>
   </patternset>
@@ -3208,7 +3211,29 @@
         fork="${junit.batchtest.fork}"/>
     </junit>
   </target>
+   
+   <target name="one-cluster-test" if="test">
 
+    <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 for ${test}"/>
+
+    <antcall target="tests-clustering-unit">
+      <param name="cluster.includes.refid" value="one.test.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>
+
   <!-- Misc tests of the testing framework itself
   -->
   <target name="tests-apache"




More information about the jboss-cvs-commits mailing list