|
From: Dain S. <dsu...@us...> - 2002-07-07 19:50:56
|
User: dsundstrom
Date: 02/07/07 12:50:55
Modified: . build.xml
Log:
Added tests-db target which executes all of the database related tests and
generates the html report. This target will be expanded to run tests on
various databases.
Revision Changes Path
1.152 +62 -1 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -r1.151 -r1.152
--- build.xml 5 Jul 2002 06:05:18 -0000 1.151
+++ build.xml 7 Jul 2002 19:50:55 -0000 1.152
@@ -13,7 +13,7 @@
<!-- -->
<!-- ====================================================================== -->
-<!-- $Id: build.xml,v 1.151 2002/07/05 06:05:18 d_jencks Exp $ -->
+<!-- $Id: build.xml,v 1.152 2002/07/07 19:50:55 dsundstrom Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -3599,6 +3599,67 @@
</batchtest>
</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"/>
+
+ <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="**/bmp/**/*UnitTestCase.class"/>
+ <include name="**/cmp2/**/*UnitTestCase.class"/>
+ <include name="**/bank/**/*UnitTestCase.class"/>
+ <include name="**/lock/**/*UnitTestCase.class"/>
+ <include name="**/perf/**/*UnitTestCase.class"/>
+ <include name="**/invokers/**/*UnitTestCase.class"/>
+ <include name="**/security-proxy/**/*UnitTestCase.class"/>
+ <include name="**/bench/ejb/**/*UnitTestCase.class"/>
+ <include name="**/idgen/**/*UnitTestCase.class"/>
+ <include name="**/testbean/**/*UnitTestCase.class"/>
+ <include name="**/threading/**/*UnitTestCase.class"/>
+ <include name="**/deadlock/**/*UnitTestCase.class"/>
+ <include name="**/dbtest/**/*UnitTestCase.class"/>
+ <include name="**/entityexc/**/*UnitTestCase.class"/>
+ <include name="**/secure-perf/**/*UnitTestCase.class"/>
+ <include name="**/bankiiop/**/*UnitTestCase.class"/>
+ <include name="**/testbean2/**/*UnitTestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+
<!--
| Run testcases in a single directory by specifing the test directory
|