[jboss-cvs] JBossAS SVN: r80283 - projects/ejb3/dev/Branch_JBoss_Cache_3/testsuite.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Oct 30 16:23:27 EDT 2008


Author: manik.surtani at jboss.com
Date: 2008-10-30 16:23:26 -0400 (Thu, 30 Oct 2008)
New Revision: 80283

Modified:
   projects/ejb3/dev/Branch_JBoss_Cache_3/testsuite/build-test.xml
Log:
Ability to run a single test class

Modified: projects/ejb3/dev/Branch_JBoss_Cache_3/testsuite/build-test.xml
===================================================================
--- projects/ejb3/dev/Branch_JBoss_Cache_3/testsuite/build-test.xml	2008-10-30 20:03:52 UTC (rev 80282)
+++ projects/ejb3/dev/Branch_JBoss_Cache_3/testsuite/build-test.xml	2008-10-30 20:23:26 UTC (rev 80283)
@@ -4408,6 +4408,73 @@
       </antcall>
    </target>
 
+
+   <target name="one-test-class-with-jvmargs" if="test">
+      <!-- For use when we need to pass in special jvmargs -->
+
+
+      <mkdir dir="${build.reports}"/>
+      <mkdir dir="${build.testlog}"/>
+      <!-- Remove the test.log so each run has a fresh log -->
+      <delete file="${build.testlog}/test.log"/>
+
+     <!-- These tests need extra stuff on classpath -->
+      <condition property="client.run.classpath" value="client.classpath">
+         <not>
+            <isset property="client.run.classpath"/>
+         </not>
+      </condition>
+
+      <!-- Ensure JBOSS_HOME is set -->
+      <fail unless="env.JBOSS_HOME" message="Environment Variable $JBOSS_HOME must be Set" />
+
+      <junit dir="${module.output}"
+         printsummary="yes"
+         haltonerror="false"
+         haltonfailure="false"
+         showoutput="yes"
+         fork="true">
+
+         <sysproperty key="jbosstest.deploy.dir" value="${build.lib}"/>
+         <sysproperty key="build.testlog" value="${build.testlog}"/>
+         <sysproperty key="log4j.configuration" value="file:${location.resources.test}/test/log4j.xml"/>
+         <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
+         <sysproperty key="jbosstest.iterationcount" value="${jbosstest.iterationcount}"/>
+         <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
+         <sysproperty key="java.security.auth.login.config" value="${resources}/test/security/auth.conf"/>
+
+
+         <!-- properties needed for clustering -->
+         <sysproperty key="jbosstest.cluster.node0" value="${node0}"/>
+         <sysproperty key="jbosstest.cluster.node0.http.url" value="${node0.http.url}"/>
+         <sysproperty key="jbosstest.cluster.node0.jndi.url" value="${node0.jndi.url}"/>
+         <sysproperty key="jbosstest.cluster.node1" value="${node1}"/>
+         <sysproperty key="jbosstest.cluster.node1.http.url" value="${node1.http.url}"/>
+         <sysproperty key="jbosstest.cluster.node1.jndi.url" value="${node1.jndi.url}"/>
+         <sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
+
+         <jvmarg line="${jvmargs}" />
+         <!-- <jvmarg line="${jvmargs} -Xrunjdwp:transport=dt_socket,address=8788,server=y,suspend=y" /> -->
+         <classpath>
+
+           <path refid="test.classpath" />
+           <pathelement location="${build.classes}"/>
+         </classpath>
+
+         <formatter type="plain" usefile="true"/>
+         <formatter type="xml" usefile="true"/>
+         <batchtest todir="${build.reports}"
+                       haltonerror="false"
+                       haltonfailure="false"
+                       fork="true">
+
+                       <fileset dir="${build.classes}">
+                          <include name="org/jboss/ejb3/test/**/${test}.class"/>
+                       </fileset>
+                    </batchtest>
+      </junit>
+   </target>
+
    <!-- Single unit test -->
    <target name="one-test-with-jvmargs" if="test">
       <!-- For use when we need to pass in special jvmargs -->
@@ -5189,6 +5256,32 @@
 
    </target>
 
+   <target name="clustered-one-test-class" depends="init, clusteredsession, clusteredentity">
+
+     <create-cluster-node conf="clustered-ejb3-totalrep-0"/>
+     <create-cluster-node conf="clustered-ejb3-totalrep-1"/>
+
+     <!-- For now use REPL_SYNC -->
+     <cache-mode-config-change conf="clustered-ejb3-totalrep-0"/>
+     <cache-mode-config-change conf="clustered-ejb3-totalrep-1"/>
+
+     <server:start name="clustered-ejb3-totalrep-0" />
+     <server:start name="clustered-ejb3-totalrep-1" />
+
+      <antcall target="one-test-class-with-jvmargs" inheritRefs="true">
+         <!--param name="test" value="clusteredsession"/-->
+         <param name="jvmargs" value=""/>
+         <!--
+         <param name="jvmargs"
+                value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=/dt_socket,address=8787,server=n,suspend=n"/>
+         -->
+      </antcall>
+       <server:stop name="clustered-ejb3-totalrep-0"/>
+       <server:stop name="clustered-ejb3-totalrep-1"/>
+
+   </target>
+
+
    <target name="clustered-tests" depends="init, clusteredsession, clusteredentity, ejbthree921">
      
      <create-cluster-node conf="clustered-ejb3-totalrep-0"/>




More information about the jboss-cvs-commits mailing list