User: starksm
Date: 02/02/28 18:20:04
Modified: . build.xml
Log:
Add additional security manager test cases
Revision Changes Path
1.81 +77 -22 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- build.xml 28 Feb 2002 04:08:05 -0000 1.80
+++ build.xml 1 Mar 2002 02:20:03 -0000 1.81
@@ -27,7 +27,7 @@
<!-- tests-jmxri-compliance still needs to run over jmxri.jar -->
<!-- the aim of that test is to check our compliance suite. -->
-<!-- $Id: build.xml,v 1.80 2002/02/28 04:08:05 user57 Exp $ -->
+<!-- $Id: build.xml,v 1.81 2002/03/01 02:20:03 starksm Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -1703,6 +1703,15 @@
<include name="org/jboss/test/securitymgr/interfaces/**"/>
</fileset>
</jar>
+
+ <!-- build securitymgr-tests.jar -->
+ <jar jarfile="${build.lib}/securitymgr-tests.jar">
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/*.class"/>
+ <include name="org/jboss/test/securitymgr/test/**"/>
+ <include name="org/jboss/ant/taskdefs/XMLJUnitResultFormatter.class"/>
+ </fileset>
+ </jar>
</target>
<!-- jsr77 test -->
@@ -2292,49 +2301,95 @@
<!-- Tests of Java2 permissions. The JBoss server must be running with
a security manager for this test -->
- <target name="tests-security-manager" depends="jars">
+ <target name="tests-security-manager" depends="init">
<mkdir dir="${build.reports}"/>
<mkdir dir="${build.testlog}"/>
<junit dir="${module.output}"
- printsummary="${junit.printsummary}"
- haltonerror="${junit.haltonerror}"
- haltonfailure="${junit.haltonfailure}"
- fork="${junit.fork}"
+ printsummary="true"
+ haltonerror="false"
+ haltonfailure="false"
+ fork="true"
timeout="${junit.timeout}"
jvm="${junit.jvm}">
<jvmarg value="${junit.jvm.options}"/>
- <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
<jvmarg value="-Djava.security.manager"/>
- <sysproperty key="java.security.policy"
- value="${build.resources}/security/tst.policy"/>
+ <jvmarg
value="-Djava.security.policy==${build.resources}/securitymgr/client.policy"/>
+<!--
+ <jvmarg value="-Djava.security.debug=access,failure"/>
+-->
+ <sysproperty key="jboss.home" file="${project.root}"/>
+ <sysproperty key="jboss.thirdparty.dir" file="${project.root}/thirdparty"/>
+ <sysproperty key="jboss.tools.dir" file="${project.root}/tools"/>
+ <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
<sysproperty key="java.security.auth.login.config"
- value="${build.resources}/security/auth.conf"/>
- <sysproperty key="log4j.properties"
file="${build.resources}/log4j.properties"/>
- <sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
- <sysproperty key="jbosstest.iterationcount"
value="${jbosstest.iterationcount}"/>
- <sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
-
+ value="${build.resources}/security/auth.conf"/>
+ <sysproperty key="log4j.properties"
+ file="${build.resources}/log4j.properties"/>
+
<classpath>
- <pathelement location="${build.classes}"/>
- <pathelement location="${build.resources}/security"/>
<pathelement location="${build.resources}"/>
+ <pathelement location="${build.lib}/securitymgr-ejb.jar"/>
+ <pathelement location="${build.lib}/securitymgr-tests.jar"/>
<path refid="tests.classpath"/>
</classpath>
- <formatter classname="org.jboss.ant.taskdefs.XMLJUnitResultFormatter"
- extension=".xml" usefile="${junit.formatter.usefile}"/>
+ <formatter type="xml" />
<batchtest todir="${build.reports}"
- haltonerror="${junit.batchtest.haltonerror}"
- haltonfailure="${junit.batchtest.haltonfailure}"
- fork="${junit.batchtest.fork}">
+ haltonerror="false"
+ haltonfailure="false"
+ fork="true">
<fileset dir="${build.classes}">
+ <exclude name="org/jboss/test/securitymgr/test/PolicyUnitTestCase.class"/>
<include name="org/jboss/test/securitymgr/test/*TestCase.class"/>
</fileset>
</batchtest>
+ </junit>
+ </target>
+
+ <target name="tests-security-policy" depends="init">
+ <mkdir dir="${build.reports}"/>
+ <mkdir dir="${build.testlog}"/>
+ <!-- The standalone test runs against the securitymgr-*.jars -->
+ <junit dir="${module.output}"
+ printsummary="true"
+ haltonerror="false"
+ haltonfailure="false"
+ fork="true"
+ timeout="${junit.timeout}"
+ jvm="${junit.jvm}">
+
+ <jvmarg value="${junit.jvm.options}"/>
+
+ <jvmarg value="-Djava.security.manager"/>
+ <jvmarg
value="-Djava.security.policy==${build.resources}/securitymgr/client.policy"/>
+<!--
+ <jvmarg value="-Djava.security.debug=access,domain,stack"/>
+-->
+ <sysproperty key="jboss.home" file="${project.root}"/>
+ <sysproperty key="jboss.thirdparty.dir" file="${project.root}/thirdparty"/>
+ <sysproperty key="jboss.tools.dir" file="${project.root}/tools"/>
+ <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/>
+ <sysproperty key="java.security.auth.login.config"
+ value="${build.resources}/security/auth.conf"/>
+ <sysproperty key="log4j.properties"
+ file="${build.resources}/log4j.properties"/>
+
+ <classpath>
+ <pathelement location="${build.resources}"/>
+ <pathelement location="${build.lib}/securitymgr-ejb.jar"/>
+ <pathelement location="${build.lib}/securitymgr-tests.jar"/>
+ <path refid="tests.classpath"/>
+ </classpath>
+
+ <formatter type="xml" />
+ <test name="org.jboss.test.securitymgr.test.PolicyUnitTestCase"
+ haltonerror="false"
+ haltonfailure="false"
+ fork="true" />
</junit>
</target>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development