|
From: Dain S. <dsu...@us...> - 2002-07-20 21:48:00
|
User: dsundstrom
Date: 02/07/20 14:47:59
Modified: . Tag: Branch_3_0 build.xml
Log:
Added database test target to running database related tests.
Added varia autonumber-plugin.jar to test path for cmp2 commerce test.
Revision Changes Path
No revision
No revision
1.106.2.31 +63 -1 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.106.2.30
retrieving revision 1.106.2.31
diff -u -r1.106.2.30 -r1.106.2.31
--- build.xml 1 Jul 2002 02:34:48 -0000 1.106.2.30
+++ build.xml 20 Jul 2002 21:47:59 -0000 1.106.2.31
@@ -13,7 +13,7 @@
<!-- -->
<!-- ====================================================================== -->
-<!-- $Id: build.xml,v 1.106.2.30 2002/07/01 02:34:48 cooperfbi Exp $ -->
+<!-- $Id: build.xml,v 1.106.2.31 2002/07/20 21:47:59 dsundstrom Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -294,6 +294,13 @@
<pathelement path="${jboss.iiop.lib}/jboss-iiop-client.jar"/>
</path>
+ <!-- Autonumber -->
+ <property name="jboss.varia.root" value="${project.root}/varia/output"/>
+ <property name="jboss.varia.lib" value="${jboss.varia.root}/lib"/>
+ <path id="jboss.varia.classpath">
+ <pathelement path="${jboss.varia.lib}/autonumber-plugin.jar"/>
+ </path>
+
<!-- The combined dependant module classpath -->
<path id="dependentmodule.classpath">
<path refid="jboss.j2ee.classpath"/>
@@ -307,6 +314,7 @@
<path refid="jboss.connector.classpath"/>
<path refid="jboss.cluster.classpath"/>
<path refid="jboss.management.classpath"/>
+ <path refid="jboss.varia.classpath"/>
</path>
<!-- ===== -->
@@ -3416,6 +3424,60 @@
</junit>
</target>
+
+ <!--
+ | Run all database related tests
+ -->
+
+ <target name="tests-db" depends="init, run-db-tests, tests-report-html"/>
+
+ <target name="run-db-tests" 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.iterationcount" value="2"/>
+
+ <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="**/bank/**/*StressTestCase.class"/>
+ <include name="**/bmp/**/*UnitTestCase.class"/>
+ <include name="**/cmp2/**/*UnitTestCase.class"/>
+ <include name="**/dbtest/**/*UnitTestCase.class"/>
+ <include name="**/deadlock/**/*StressTestCase.class"/>
+ <include name="**/entityexc/**/*UnitTestCase.class"/>
+ <include name="**/idgen/**/*UnitTestCase.class"/>
+ <include name="**/perf/**/*UnitTestCase.class"/>
+ <include name="**/testbean/**/*UnitTestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+
<!--
| Run testcases in a single directory by specifing the test directory
| name in -Dtest=dirname in tests/dirname/test/**TestCase.class
|