|
From: John S. <sto...@us...> - 2002-12-17 06:34:41
|
User: stormy_sky
Date: 02/12/16 22:34:40
Modified: . build.xml
Log:
Added a simple file-based persistence layer to the EJB Timer Service implementation and its recovery.
Added a timer testcase.
Revision Changes Path
1.206 +89 -1 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -r1.205 -r1.206
--- build.xml 15 Dec 2002 15:23:20 -0000 1.205
+++ build.xml 17 Dec 2002 06:34:40 -0000 1.206
@@ -10,7 +10,7 @@
<!ENTITY mqstress SYSTEM "./mqstress.xml">
]>
-<!-- $Id: build.xml,v 1.205 2002/12/15 15:23:20 loubyansky Exp $ -->
+<!-- $Id: build.xml,v 1.206 2002/12/17 06:34:40 stormy_sky Exp $ -->
<!--+======================================================================+-->
<!--| JBoss (The OpenSource J2EE WebOS) Build File |-->
@@ -572,6 +572,25 @@
destdir="${build.resources}/jmx/loading/cpmanifest/META-INF"/>
</ejbdoclet>
+ <!-- EJB Timer Service Test Beans -->
+ <mkdir dir="${build.resources}/timer/META-INF"/>
+ <ejbdoclet destdir="${build.gen-src}"
+ ejbspec="2.0"
+ excludedtags="@version,@author">
+ <fileset dir="${source.java}">
+ <include name="org/jboss/test/timer/ejb/*Bean.java"/>
+ </fileset>
+ <packageSubstitution packages="ejb" substituteWith="interfaces"/>
+ <remoteinterface/>
+ <homeinterface/>
+ <deploymentdescriptor xmlencoding ="UTF-8"
+ destdir="${build.resources}/timer/META-INF"/>
+ <jboss xmlencoding="UTF-8"
+ version="3.0"
+ destdir="${build.resources}/timer/META-INF"
+ mergedir="${source.resources}/timer/"/>
+ </ejbdoclet>
+
</target>
<target name="compile-mbean-sources" depends="init" unless="noxdoclet">
@@ -694,6 +713,7 @@
<call target="_output:hellojrmpiiop"/>
<call target="_output:marathon"/>
<call target="_output:classloader"/>
+ <call target="_output:timer"/>
</parallel>
</target>
@@ -2926,6 +2946,21 @@
</jar>
</target>
+ <!-- EJB Timer Service test -->
+ <target name="_output:timer" depends="_output:support">
+ <!-- build session-bean-timer.jar -->
+ <jar jarfile="${build.lib}/session-bean-timer.jar">
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/timer/ejb/**"/>
+ <include name="org/jboss/test/timer/interfaces/**"/>
+ <include name="META-INF/**"/>
+ </fileset>
+ <fileset dir="${build.resources}/timer/">
+ <include name="META-INF/**"/>
+ </fileset>
+ </jar>
+ </target>
+
<!--+====================================================================+-->
<!--| Documents |-->
@@ -2996,6 +3031,7 @@
tests-jbossmx-implementation,
tests-jbossmx-performance,
tests-iiop-stress,
+ tests-timer,
tests-report">
</target>
@@ -3009,6 +3045,7 @@
tests-util-unit,
tests-jbossmx-compliance,
tests-jbossmx-implementation,
+ tests-timer,
tests-report">
</target>
@@ -3934,6 +3971,57 @@
<fileset dir="${build.classes}">
<include name="**/test/*iiop/test/*StressTestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!--
+ | Standard JSR-77 tests that should run successfully against a default
+ | JBoss server distribution build.
+ -->
+
+ <target name="tests-timer" depends="maybejars">
+ <mkdir dir="${build.reports}"/>
+ <mkdir dir="${build.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}"/>
+ <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
+
+ <jvmarg value="-Djava.security.manager"/>
+ <jvmarg value="-Dsecurity.domain=test-domain"/>
+ <sysproperty key="java.security.policy"
+ value="${build.resources}/security/tst.policy"/>
+ <sysproperty key="java.security.auth.login.config"
+ value="${build.resources}/security/auth.conf"/>
+ <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}"/>
+
+ <classpath>
+ <pathelement location="${build.classes}"/>
+ <pathelement location="${build.resources}/security"/>
+ <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="**/test/timer/test/**UnitTest.class"/>
</fileset>
</batchtest>
</junit>
|