From: Jason T. G. <jg...@jb...> - 2005-06-10 18:31:59
|
User: jgreene Date: 05/06/10 13:47:30 Modified: jbosstest Tag: Branch_4_0 build.xml Log: Add one-test-ssl for running ssl tests individually Modify websevice-ssl-includes Revision Changes Path No revision No revision 1.406.2.70 +57 -2 jbosstest/build.xml (In the diff below, changes in quantity of whitespace are not shown.) Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.69 retrieving revision 1.406.2.70 diff -u -b -r1.406.2.69 -r1.406.2.70 --- build.xml 9 Jun 2005 16:17:53 -0000 1.406.2.69 +++ build.xml 10 Jun 2005 17:47:30 -0000 1.406.2.70 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.69 2005/06/09 16:17:53 jgreene Exp $ --> +<!-- $Id: build.xml,v 1.406.2.70 2005/06/10 17:47:30 jgreene Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -495,7 +495,7 @@ </patternset> <!-- Webservice SSL Tests --> <patternset id="webservice-ssl.includes"> - <include name="org/jboss/test/webservice/secure/**/*"/> + <include name="org/jboss/test/webservice/secure/**/*TestCase.class"/> </patternset> <!-- Tests needing IIOP setup --> <patternset id="iiop.includes"> @@ -2667,6 +2667,61 @@ </junit> </target> + <target name="one-test-ssl" if="test" + description="Execute a single test."> + <mkdir dir="${build.reports}"/> + <mkdir dir="${build.testlog}"/> + <!-- Remove the test.log so each test has a fresh log --> + <delete file="${build.testlog}/test.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}"/> + <!-- Used for JGroups --> + <jvmarg value="-Dbind.address=${node0}"/> + <sysproperty key="java.endorsed.dirs" value="${jboss.dist}/lib/endorsed"/> + <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> + <sysproperty key="build.testlog" value="${build.testlog}"/> + <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> + <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="org.jboss.security.ignoreHttpsHost" value="true"/> + + <sysproperty key="javax.net.ssl.keyStore" + value="${build.resources}/test-configs/tomcat-ssl/conf/client.keystore"/> + <sysproperty key="javax.net.ssl.keyStorePassword" value="unit-tests-client"/> + <sysproperty key="javax.net.ssl.trustStore" + value="${build.resources}/test-configs/tomcat-ssl/conf/client.keystore"/> + <sysproperty key="javax.net.ssl.trustStorePassword" value="unit-tests-client"/> + + <classpath> + <pathelement location="${build.classes}"/> + <pathelement location="${build.resources}"/> + <!-- Include for those tests that need common security resources --> + <pathelement location="${build.resources}/security"/> + <path refid="tests.classpath"/> + </classpath> + + <formatter type="plain" usefile="${junit.formatter.usefile}"/> + <formatter type="xml" usefile="${junit.formatter.usefile}"/> + + <test todir="${build.reports}" name="${test}" + haltonerror="${junit.batchtest.haltonerror}" + haltonfailure="${junit.batchtest.haltonfailure}" + fork="${junit.batchtest.fork}"/> + </junit> + </target> + <!-- Misc tests of the testing framework itself --> <target name="tests-apache" |