From: Scott M S. <st...@us...> - 2005-02-15 19:01:48
|
User: starksm Date: 05/02/15 11:01:40 Modified: . Tag: Branch_4_0_1_SP1 build.xml Log: Run the jacc tests with and without a security manager Revision Changes Path No revision No revision 1.406.2.32.2.3 +82 -1 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.32.2.2 retrieving revision 1.406.2.32.2.3 diff -u -r1.406.2.32.2.2 -r1.406.2.32.2.3 --- build.xml 15 Feb 2005 16:00:44 -0000 1.406.2.32.2.2 +++ build.xml 15 Feb 2005 19:00:31 -0000 1.406.2.32.2.3 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.32.2.2 2005/02/15 16:00:44 starksm Exp $ --> +<!-- $Id: build.xml,v 1.406.2.32.2.3 2005/02/15 19:00:31 starksm Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -559,6 +559,7 @@ <antcall target="tomcat-sso-clustered-tests"/> <antcall target="test-example-binding-manager"/> <antcall target="tests-jacc-security"/> + <antcall target="tests-jacc-securitymgr"/> <antcall target="tests-report"/> <record name="${basedir}/build.log" action="stop"/> </target> @@ -1345,6 +1346,86 @@ <include name="lib/**"/> </patternset> </create-config> + <start-jboss conf="jacc"/> + + <mkdir dir="${build.reports}"/> + <mkdir dir="${build.testlog}"/> + <waitfor maxwait="60" maxwaitunit="second" + checkevery="5" checkeveryunit="second" timeoutproperty="startup.timeout"> + <http url="http://localhost:8080/"/> + </waitfor> + <fail message="Timeout waiting for server to start" if="startup.timeout"/> + + + <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,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="jbosstest.secure" value="true"/> + <!-- Pass along any jbosstest.* system properties --> + <syspropertyset> + <propertyref prefix="jbosstest."/> + </syspropertyset> + <sysproperty key="java.security.auth.login.config" + value="${build.resources}/security/auth.conf"/> + <sysproperty key="build.testlog" value="${build.testlog}"/> + <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> + + <classpath> + <pathelement location="${build.resources}"/> + <pathelement location="${build.classes}"/> + <path refid="tests.classpath"/> + </classpath> + + <formatter type="xml"/> + + <batchtest todir="${build.reports}" + haltonerror="false" + haltonfailure="false" + fork="true"> + + <fileset dir="${build.classes}"> + <patternset refid="jacc.includes"/> + </fileset> + </batchtest> + </junit> + + <stop-jboss/> + </target> + + <target name="tests-jacc-securitymgr" + description="Tests run against a jboss server with JACC configured + security manager"> + <!-- Create the ssl enabled tomcat config --> + <create-config baseconf="default" newconf="jacc"> + <patternset> + <include name="conf/**"/> + <include name="deploy/hsqldb-ds.xml"/> + <include name="deploy/jbossweb*.sar/**"/> + <include name="deploy/ear-deployer.xml"/> + <include name="deploy/ejb-deployer.xml"/> + <include name="deploy/jmx-invoker-service.xml"/> + <include name="deploy/jbossjca-service.xml"/> + <include name="deploy/jboss-local-jdbc.rar"/> + <include name="deploy/mail-service.xml"/> + <include name="deploy/jms/*"/> + <include name="lib/**"/> + </patternset> + </create-config> <start-securitymgr conf="jacc"/> <mkdir dir="${build.reports}"/> |