[jboss-cvs] JBoss Messaging SVN: r2888 - trunk/tests.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jul 13 02:43:42 EDT 2007
Author: clebert.suconic at jboss.com
Date: 2007-07-13 02:43:41 -0400 (Fri, 13 Jul 2007)
New Revision: 2888
Modified:
trunk/tests/build.xml
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-572
Modified: trunk/tests/build.xml
===================================================================
--- trunk/tests/build.xml 2007-07-13 04:42:53 UTC (rev 2887)
+++ trunk/tests/build.xml 2007-07-13 06:43:41 UTC (rev 2888)
@@ -108,6 +108,7 @@
<property name="junit.includeantruntime" value="true"/>
<property name="junit.timeout" value="900000"/> <!-- 15 mins -->
<property name="clustering.junit.timeout" value="1200000"/> <!-- 20 mins -->
+ <property name="clustering.stress.junit.timeout" value="1800000"/> <!-- 30 mins -->
<property name="stress.junit.timeout" value="900000"/> <!-- 15 mins -->
<property name="bridge.junit.timeout" value="5400000"/> <!-- 90 mins -->
@@ -471,8 +472,8 @@
<target name="stress-tests" depends="tests-jar, prepare-testdirs, clear-test-logs">
<antcall target="invm-stress-tests"/>
<antcall target="remote-stress-tests"/> <!-- default remoting configuration (bisocket) -->
+ <antcall target="clustering-stress-tests"/>
-
<!-- We DO NOT run the test suite using the HTTP transport - it is not sufficiently stable
<antcall target="remote-stress-tests">
<param name="test.remoting" value="http"/>
@@ -558,7 +559,7 @@
haltonerror="${junit.batchtest.haltonerror}">
<formatter type="plain" usefile="${junit.formatter.usefile}"/>
<fileset dir="${build.tests.classes}">
- <include name="**/jms/stress/**/*Test.class"/>
+ <include name="**/jms/stress/*Test.class"/>
</fileset>
</batchtest>
</junit>
@@ -567,6 +568,64 @@
</target>
+ <target name="clustering-stress-tests" depends="tests-jar, prepare-testdirs, clear-test-logs"
+ description="Runs the clustering tests">
+
+ <mkdir dir="${build.tests.reports}"/>
+
+ <echo message=""/>
+ <echo message="Running clustering stress tests, fork=${junit.fork}, junit.batchtest.fork=${junit.batchtest.fork}"/>
+ <echo message=""/>
+
+ <junit printsummary="${junit.printsummary}"
+ fork="${junit.fork}"
+ includeantruntime="yes"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ showoutput="${junit.showoutput}"
+ timeout="${clustering.stress.junit.timeout}">
+
+ <sysproperty key="remote" value="true"/>
+ <sysproperty key="module.output" value="${tests.output}"/>
+ <sysproperty key="test.bind.address" value="${test.bind.address}"/>
+ <sysproperty key="jgroups.bind_addr" value="${test.bind.address}"/>
+ <sysproperty key="test.database" value="${clustering.tests.database}"/>
+ <sysproperty key="test.clustered" value="true"/>
+ <sysproperty key="test.logfile.suffix" value="clustering-client"/>
+ <sysproperty key="objectstore.dir" value="${objectstore.dir}"/>
+ <jvmarg value="-Xmx512M"/>
+ <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
+ <!--
+ <jvmarg line="-Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=n,suspend=n,address=antjunit"/>
+ -->
+
+ <classpath>
+ <path refid="test.execution.classpath"/>
+ </classpath>
+
+ <sysproperty key="jboss-junit-configuration" value="StressClustering"/>
+ <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
+ usefile="${junit.formatter.usefile}" extension="-Clustering.xml"/>
+
+ <batchtest fork="${junit.batchtest.fork}"
+ todir="${junit.batchtest.todir}"
+ haltonfailure="${junit.batchtest.haltonfailure}"
+ haltonerror="${junit.batchtest.haltonerror}">
+ <formatter type="plain" usefile="${junit.formatter.usefile}"/>
+ <!--
+ I needed a way to intercept the end of a forked ant JUnit test run, in order to
+ perform clean-up, and this is it: register a JUnitTestSuiteListener as a JUnit
+ batchtest formatter, and it will get notified on a endTestSuite() event.
+ -->
+ <formatter classname="org.jboss.test.messaging.tools.ant.JUnitTestSuiteListener"/>
+
+ <fileset dir="${build.tests.classes}">
+ <include name="**/jms/stress/clustering/*Test.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
<target name="clustering-tests" depends="tests-jar, prepare-testdirs, clear-test-logs"
description="Runs the clustering tests">
More information about the jboss-cvs-commits
mailing list