User: starksm
Date: 01/06/18 19:48:53
Modified: src/build run_tests.xml
Log:
Add client-tests for those tests that cannot be run from the build.classes.dir
Revision Changes Path
1.14 +34 -4 jbosstest/src/build/run_tests.xml
Index: run_tests.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/build/run_tests.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- run_tests.xml 2001/06/12 20:53:56 1.13
+++ run_tests.xml 2001/06/19 02:48:53 1.14
@@ -2,7 +2,7 @@
<!-- An ant build file for running the test code against a
JBoss server dist
-$Revision: 1.13 $
+$Revision: 1.14 $
-->
<project name="JBossUnitTests" default="run-tests" basedir="../../">
@@ -41,6 +41,7 @@
<property name="build.lib.dir" value="${build.dir}/lib"/>
<property name="build.deploy.dir" value="${build.dir}/deploy"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
+ <property name="build.lib.dir" value="${build.dir}/client"/>
<property name="build.javadocs.dir" value="${build.dir}/docs/api"/>
<property name="dist.dir" value="dist"/>
@@ -61,7 +62,6 @@
<!-- The base classpath for the junit tests -->
<path id="test.classpath" >
- <pathelement path="${build.classes.dir}" />
<pathelement path="${lib.dir}/ant-1.3.jar" />
<pathelement path="${lib.dir}/ant-1.3-optional.jar" />
<pathelement path="${src.lib.dir}/deploy.jar" />
@@ -74,8 +74,8 @@
<pathelement path="${jboss.client}/jbosssx-client.jar" />
<pathelement path="${jboss.lib}/jaxp.jar" />
<pathelement path="${jboss.lib}/crimson.jar" />
- <pathelement path="${jboss.lib}/jaas.jar" />
- <pathelement path="${jboss.lib}/jmxri.jar" />
+ <pathelement path="${jboss.lib}/jaas.jar" />
+ <pathelement path="${jboss.lib}/jmxri.jar" />
<pathelement path="${jboss.lib.ext}/ejb.jar" />
<pathelement path="${jboss.lib.ext}/ejb2.0.jar" />
<pathelement path="${jboss.lib.ext}/jms.jar" />
@@ -88,6 +88,7 @@
<antcall target="standard-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" />
@@ -111,6 +112,7 @@
<jvmarg value="-Djbosstest.deploy.dir=${build.deploy.dir}" />
<classpath>
<path refid="test.classpath" />
+ <pathelement path="${build.classes.dir}" />
</classpath>
<formatter type="xml" usefile="true" />
@@ -127,6 +129,9 @@
</target>
<!-- =================================================================== -->
+ <!-- Standard security tests that should run successfully against a default
+ JBoss server distribution build.
+ -->
<!-- =================================================================== -->
<target name="basic-security-tests">
<junit printsummary="no" haltonfailure="yes" fork="true"
@@ -138,6 +143,7 @@
<jvmarg value="-Djbosstest.deploy.dir=${build.deploy.dir}" />
<classpath>
<path refid="test.classpath" />
+ <pathelement path="${build.classes.dir}" />
<pathelement path="${src.resources}/security" />
</classpath>
@@ -153,6 +159,30 @@
</target>
<!-- =================================================================== -->
+ <!-- Tests that need to be run by loading the testcase code from a client
+ jar rather than the build.classes.dir. Typically these tests need to
+ control how classes are loaded.
+ -->
+ <!-- =================================================================== -->
+ <target name="client-tests">
+ <junit printsummary="no" haltonfailure="yes" fork="true"
+ dir="${build.classes.dir}" timeout="120000"
+ >
+ <jvmarg value="-Djava.security.manager" />
+ <jvmarg
value="-Djava.security.policy=${src.resources}/security/tst.policy" />
+ <jvmarg
value="-Djava.security.auth.login.config=${src.resources}/security/auth.conf" />
+ <jvmarg value="-Djbosstest.deploy.dir=${build.deploy.dir}" />
+ <classpath>
+ <path refid="test.classpath" />
+ <pathelement path="${build.lib.dir}/jrmp-dl-client.jar" />
+ </classpath>
+
+ <formatter type="xml" usefile="true" />
+
+ <test name="org.jboss.test.jrmp.test.TestDynLoading" />
+ </junit>
+ </target>
+
<!-- Setup a JBoss dist with a config suitable for the
security-tests task. The config steps consist of:
1. Patch the jboss.jcml security section to enable all mbeans
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development