User: starksm
Date: 02/02/25 00:07:19
Modified: . build.xml
Log:
Add security manager unit test target
Revision Changes Path
1.78 +59 -1 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- build.xml 24 Feb 2002 10:24:35 -0000 1.77
+++ build.xml 25 Feb 2002 08:07:18 -0000 1.78
@@ -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.77 2002/02/24 10:24:35 user57 Exp $ -->
+<!-- $Id: build.xml,v 1.78 2002/02/25 08:07:18 starksm Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -1697,6 +1697,15 @@
<include name="roles.properties"/>
</fileset>
</jar>
+
+ <!-- build securitymgr-ejb.jar -->
+ <jar jarfile="${build.lib}/securitymgr-ejb.jar">
+ <metainf dir="${build.resources}/securitymgr/META-INF" />
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/securitymgr/ejb/**"/>
+ <include name="org/jboss/test/securitymgr/interfaces/**"/>
+ </fileset>
+ </jar>
</target>
<!-- jsr77 test -->
@@ -2028,6 +2037,7 @@
<!-- do not include the dyn loading or security tests -->
<exclude name="**/test/jrmp/test/DynLoadingUnitTestCase.class"/>
<exclude name="**/test/security/test/*"/>
+ <exclude name="**/test/securitymgr/test/*"/>
<!-- Takes way too long, needs to be fixed to handle timeouts -->
<!--
@@ -2084,6 +2094,7 @@
<!--exclude name="**/JBossMQPerfStressTestCase.class"/-->
<exclude name="**/test/perf/test/SecurePerfStressTestCase.class"/>
<exclude name="**/test/security/test/*"/>
+ <exclude name="**/test/securitymgr/test/*"/>
</fileset>
</batchtest>
</junit>
@@ -2282,6 +2293,53 @@
</junit>
</target>
+ <!-- Tests of Java2 permissions. The JBoss server must be running with
+ a security manager for this test -->
+ <target name="tests-security-manager" depends="jars">
+ <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}"/>
+
+ <jvmarg value="-Djava.security.manager"/>
+ <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="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}"/>
+
+ <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="org/jboss/test/securitymgr/test/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
<!--
| Standard JSR-77 tests that should run successfully against a default
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development