|
From: Thomas D. <tdi...@us...> - 2004-11-03 09:03:03
|
User: tdiesler Date: 04/11/03 01:02:56 Modified: . Tag: Branch_4_0 build.xml Log: Resurect JBoss.NET tests Revision Changes Path No revision No revision 1.406.2.20 +60 -7 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.19 retrieving revision 1.406.2.20 diff -u -r1.406.2.19 -r1.406.2.20 --- build.xml 2 Nov 2004 11:07:40 -0000 1.406.2.19 +++ build.xml 3 Nov 2004 09:02:55 -0000 1.406.2.20 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.19 2004/11/02 11:07:40 tdiesler Exp $ --> +<!-- $Id: build.xml,v 1.406.2.20 2004/11/03 09:02:55 tdiesler Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -827,11 +827,6 @@ <stop-jboss url="${node1.jndi.url}"/> </target> - <target name="jbossnet-tests" - description="Tomcat tests requiring SSO configured"> - <echo message="Not yet implemented"/> - </target> - <!-- | Standard tests that should run successfully against a default JBoss | server distribution build. @@ -1701,9 +1696,67 @@ </junit> </target> + <!-- + | Standard jbossnet tests that should run successfully against a + | JBoss server distribution build that contains jboss-net. + --> + + <target name="tests-jbossnet" + description="Execute JBoss.NET Tests"> + + <mkdir dir="${build.reports}"/> + <mkdir dir="${build.testlog}"/> + <!-- choose a testpattern via a property --> + <property name="jbosstest.pattern" value="**/*"/> + <junit dir="${module.output}" + printsummary="${junit.printsummary}" + haltonerror="${junit.haltonerror}" + haltonfailure="${junit.haltonfailure}" + fork="${junit.fork}" + timeout="${junit.timeout}" + jvm="${junit.jvm}"> + + <jvmarg line="${junit.jvm.options}"/> + <sysproperty key="jbosstest.deploy.dir" file="${build.lib}"/> + <sysproperty key="jbosstest.secure" value="true"/> + + <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="build.testlog" value="${build.testlog}"/> + <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> + + <!-- make sure to use xerces on the client side as well, otherwise the element echo tests might fail --> + <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> + <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/> + + <classpath> + <pathelement location="${build.classes}"/> + <pathelement location="${build.resources}/security"/> + <pathelement location="${build.resources}"/> + <pathelement location="${jboss.jbossnet.lib}/jboss-net-client.jar"/> + <path refid="tests.classpath"/> + </classpath> + + <formatter type="xml" usefile="${junit.formatter.usefile}"/> + <formatter type="plain" 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="**/test/jbossnet/${jbosstest.pattern}TestCase.class"/> + </fileset> + </batchtest> + </junit> + </target> + <!-- Run the Web Services Tests--> <target name="tests-webservices" - description="Execute Web Services Related Tests"> + description="Execute JBossWS Tests"> <mkdir dir="${build.reports}" /> <junit dir="${module.output}" |