|
From: Bill B. <pat...@us...> - 2003-05-25 01:49:04
|
User: patriot1burke
Date: 03/05/24 18:49:03
Modified: . build.xml
Log:
made a standalone AOP test.
Revision Changes Path
1.261 +54 -1 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -r1.260 -r1.261
--- build.xml 23 May 2003 07:04:20 -0000 1.260
+++ build.xml 25 May 2003 01:49:03 -0000 1.261
@@ -10,7 +10,7 @@
<!ENTITY mqstress SYSTEM "./mqstress.xml">
]>
-<!-- $Id: build.xml,v 1.260 2003/05/23 07:04:20 cgjung Exp $ -->
+<!-- $Id: build.xml,v 1.261 2003/05/25 01:49:03 patriot1burke Exp $ -->
<!--+======================================================================+-->
<!--| JBoss (The OpenSource J2EE WebOS) Build File |-->
@@ -86,6 +86,7 @@
<path refid="junit.junit.classpath"/>
<path refid="dom4j.dom4j.classpath"/>
<path refid="jdom.classpath"/>
+ <path refid="javassist.classpath"/>
<path refid="gnu.regexp.classpath"/>
<path refid="apache.bcel.classpath"/>
<path refid="hsqldb.hsqldb.classpath"/>
@@ -3471,6 +3472,7 @@
<target name="tests" description="Execute all tests."
depends="init,
tests-standard-unit,
+ aop-test,
tests-client-unit,
tests-security-basic-unit,
tests-standard-stress,
@@ -4597,6 +4599,57 @@
| Run testcases in a single directory by specifing the test directory
| name in -Dtest=dirname in tests/dirname/test/**TestCase.class
-->
+
+ <target name="aop-test" depends="init"
+ description="Execute a single test.">
+ <echo message="executing aop standalone test"/>
+ <mkdir dir="${build.reports}"/>
+ <mkdir dir="${build.log}"/>
+ <!-- Remove the test.log so each run has a fresh log -->
+ <delete file="${build.log}/test.log" />
+ <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}"/>
+ <jvmarg value="-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader"/>
+ <jvmarg value="-Djava.security.manager"/>
+ <jvmarg value="-Djava.security.policy==${build.resources}/aop/client.policy"/>
+ <sysproperty key="jbosstest.deploy.dir" value="${build.lib}"/>
+ <sysproperty key="build.log" value="${build.log}"/>
+ <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/>
+ <sysproperty key="jbosstest.data.dir" value="${jbosstest.data.dir}"/>
+ <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
+ <sysproperty key="jbosstest.iterationcount" value="${jbosstest.iterationcount}"/>
+ <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
+ <sysproperty key="jbosstest.server.name" value="${jbosstest.server.name}"/>
+
+
+ <classpath>
+ <pathelement location="${build.classes}"/>
+ <pathelement location="${build.resources}"/>
+ <pathelement location="${build.resources}/aop/standalone"/>
+ <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="org/jboss/test/aop/nonjunit/StandaloneUnitTestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
<target name="test" depends="init"
description="Execute a single test.">
|