User: schaefera Date: 02/04/12 16:54:11 Modified: src/build Tag: Branch_2_4 run_tests.xml Log: Backport of the JBoss 3.0 stress tests w/o JMS and deadlock tests. Revision Changes Path No revision No revision 1.15.2.12 +113 -2 jbosstest/src/build/Attic/run_tests.xml Index: run_tests.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/build/Attic/run_tests.xml,v retrieving revision 1.15.2.11 retrieving revision 1.15.2.12 diff -u -r1.15.2.11 -r1.15.2.12 --- run_tests.xml 9 Apr 2002 08:07:43 -0000 1.15.2.11 +++ run_tests.xml 12 Apr 2002 23:54:10 -0000 1.15.2.12 @@ -2,7 +2,7 @@ <!-- An ant build file for running the test code against a JBoss server dist -$Revision: 1.15.2.11 $ +$Revision: 1.15.2.12 $ --> <project name="JBossUnitTests" default="run-tests" basedir="../../"> @@ -46,7 +46,7 @@ <property name="dist.dir" value="dist"/> <property name="test.results.dir" value="${basedir}/../results"/> - <property name="test.timeout" value="240000"/> + <property name="test.timeout" value="1200000"/> <property name="email.from" value="[EMAIL PROTECTED]"/> <property name="email.to.list" value="[EMAIL PROTECTED]"/> <property name="email.mailhost" value="localhost" /> @@ -102,6 +102,25 @@ </target> <!-- =================================================================== --> + <!-- Execute the junit tests --> + <!-- =================================================================== --> + <target name="run-stress-tests" depends="build" if="junit.present"> + <delete dir="${test.results.dir}" /> + <mkdir dir="${test.results.dir}" /> + <antcall target="standard-stress-tests" /> +<!-- <antcall target="basic-security-tests" /> --> +<!-- <antcall target="client-tests" /> --> + + <!-- Check if the security setup steps have been performed --> +<!-- <available property="security.configured" file="${jboss.home}/bin/SRPVerifierStore.ser" /> --> + <!-- Run security tests seperately due to their need for a + non-default JBoss server dist. If the security-setup task + steps have not been completed these tests will fail. + --> +<!-- <antcall target="security-tests" /> --> + </target> + + <!-- =================================================================== --> <!-- Standard tests that should run successfully against a default JBoss server distribution build. This target looks for candidate JUnit tests by looking for **/test/Main.java or **/test/Test*.java patterns. @@ -124,6 +143,7 @@ <include name="**/test/*/test/Test*.java" /> <include name="**/test/*/test/AllJUnitTests.java" /> <include name="**/test/*/test/Main.java" /> + <exclude name="**/*StressTestCase.java"/> <exclude name="**/test/perf/test/TestSecurePerf.java" /> <exclude name="**/test/security/test/*" /> </fileset> @@ -132,6 +152,91 @@ </target> <!-- =================================================================== --> + <!-- Standard Stress Tests (backport from JBoss 3.0) + --> + <!-- AS ToDo: Adjust description + Standard stress tests that should run successfully against a default JBoss + server distribution build. This target looks for candidate JUnit tests + by looking for **/test/Main.java or **/test/Test*.java patterns. + --> + <!-- =================================================================== --> + <target name="standard-stress-tests"> + <junit dir="${build.classes.dir}" + printsummary="yes" + haltonerror="no" + haltonfailure="no" + fork="true" + timeout="${test.timeout}" + > + <jvmarg value="-Djbosstest.deploy.dir=${build.deploy.dir}" /> +<!-- <sysproperty key="log4j.configuration" value="file:${src.resources}/log4j.properties"/> --> + <classpath> + <path refid="test.classpath" /> + <pathelement path="${build.classes.dir}" /> +<!-- <pathelement location="${src.resources}"/> --> + </classpath> + + <formatter type="xml" usefile="true" /> + + <batchtest todir="${test.results.dir}"> + <fileset dir="${build.classes.dir}"> + <include name="**/*StressTestCase.class"/> + <exclude name="**/test/perf/test/SecurePerfStressTestCase.class"/> + <exclude name="**/test/security/test/*"/> + <exclude name="**/test/securitymgr/test/*"/> + </fileset> + </batchtest> + </junit> + </target> +<!-- Copied from JBoss 3.0 + <target name="tests-standard-stress" depends="maybejars"> + <mkdir dir="${build.reports}"/> + <mkdir dir="${build.testlog}"/> + <junit dir="${module.output}" + printsummary="${junit.printsummary}" + haltonerror="${junit.haltonerror}" + haltonfailure="${junit.haltonfailure}" + fork="${junit.fork}" + timeout="${junit.timeout}" + jvm="${junit.jvm}"> + + <jvmarg value="${junit.jvm.options}"/> + <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> + <sysproperty key="build.testlog" value="${build.testlog}"/> + <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> + <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/> + <sysproperty key="jbosstest.iterationcount" value="${jbosstest.iterationcount}"/> + <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/> + + <classpath> + <pathelement location="${build.classes}"/> + <pathelement location="${build.resources}"/> + <path refid="tests.classpath"/> + </classpath> + + <formatter classname="org.jboss.ant.taskdefs.XMLJUnitResultFormatter" + extension=".xml" usefile="${junit.formatter.usefile}"/> + + <batchtest todir="${build.reports}" + haltonerror="${junit.batchtest.haltonerror}" + haltonfailure="${junit.batchtest.haltonfailure}" + fork="${junit.batchtest.fork}"> + + <fileset dir="${build.classes}"> + <include name="**/*StressTestCase.class"/> + + <!- - do not include the perf or security tests - -> +<!- -mq test seems to break things- -> + <!- -exclude name="**/JBossMQPerfStressTestCase.class"/- -> + <exclude name="**/test/perf/test/SecurePerfStressTestCase.class"/> + <exclude name="**/test/security/test/*"/> + <exclude name="**/test/securitymgr/test/*"/> + </fileset> + </batchtest> + </junit> + </target> +--> + <!-- =================================================================== --> <!-- Standard security tests that should run successfully against a default JBoss server distribution build. --> @@ -440,6 +545,12 @@ <!-- =================================================================== --> <target name="test-and-report" depends="run-tests,tests-report"/> + + <!-- =================================================================== --> + <!-- run stress tests, then produce a report from the result file --> + <!-- =================================================================== --> + + <target name="stresstest-and-report" depends="run-stress-tests,tests-report"/> <!-- =================================================================== --> <!-- run tests, produce a report, then mail it -->
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development