From: Scott S. <sco...@jb...> - 2005-05-26 17:42:29
|
User: starksm Date: 05/05/26 13:42:03 Modified: jbosstest Tag: Branch_4_0 build.xml Log: Add a unit test for the binding service to validate that the services are actually started Revision Changes Path No revision No revision 1.406.2.67 +27 -132 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.66 retrieving revision 1.406.2.67 diff -u -b -r1.406.2.66 -r1.406.2.67 --- build.xml 4 May 2005 00:05:05 -0000 1.406.2.66 +++ build.xml 26 May 2005 17:42:03 -0000 1.406.2.67 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.66 2005/05/04 00:05:05 starksm Exp $ --> +<!-- $Id: build.xml,v 1.406.2.67 2005/05/26 17:42:03 starksm Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -528,6 +528,13 @@ <patternset id="compatibility.excludes"> <exclude name="org/jboss/test/compatibility/test/*TestCase.class"/> </patternset> + <!-- Binding service tests --> + <patternset id="binding-manager.includes"> + <include name="org/jboss/test/binding/*TestCase.class"/> + </patternset> + <patternset id="binding-manager.excludes"> + <exclude name="org/jboss/test/binding/*TestCase.class"/> + </patternset> <!-- Tests that are currently broken --> <patternset id="badtest.excludes"> @@ -554,6 +561,7 @@ <patternset refid="jbossxb.excludes"/> <patternset refid="deployment-service.excludes"/> <patternset refid="compatibility.excludes"/> + <patternset refid="binding-manager.excludes"/> </patternset> <!-- A target that allows for conditional dependency on the compilation and @@ -683,37 +691,8 @@ <stop-jboss/> <!-- - <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}"/> - <sysproperty key="build.testlog" value="${build.testlog}"/> - <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> - - <classpath> - <pathelement location="${build.classes}"/> - <pathelement location="${build.resources}"/> - <path refid="tests.classpath"/> - </classpath> - - <formatter type="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}"> - <patternset refid="tc-sso.includes"/> - </fileset> - </batchtest> - </junit> + <run-junit junit.patternset="netboot.includes" + /> --> <stop-jboss url="jnp://localhost:11099"/> </target> @@ -854,43 +833,19 @@ </create-config> <start-jboss conf="tomcat-ssl"/> <wait-on-host/> - <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}"/> - <sysproperty key="build.testlog" value="${build.testlog}"/> - <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> - <sysproperty key="javax.net.ssl.keyStore" + <!-- Specify the JSSE properties --> + <property name="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" + <property name="javax.net.ssl.keyStorePassword" value="unit-tests-client"/> + <property name="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}"/> - <path refid="tests.classpath"/> - </classpath> - - <formatter type="xml" usefile="${junit.formatter.usefile}"/> - - <batchtest todir="${build.reports}" - haltonerror="${junit.batchtest.haltonerror}" - haltonfailure="${junit.batchtest.haltonfailure}" - fork="${junit.batchtest.fork}"> + <property name="javax.net.ssl.trustStorePassword" value="unit-tests-client"/> - <fileset dir="${build.classes}"> - <patternset refid="tc-ssl.includes"/> - </fileset> - </batchtest> - </junit> + <propertyset id="tomcat-ssl-tests-props"> + <propertyref prefix="javax.net.ssl"/> + </propertyset> + <run-junit junit.patternset="tc-ssl.includes" + junit.syspropertyset="tomcat-ssl-tests-props" /> <stop-jboss/> <wait-on-shutdown conf="tomcat-ssl"/> </target> @@ -916,37 +871,7 @@ </create-config> <start-jboss conf="tomcat-sso"/> <wait-on-host/> - <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}"/> - <sysproperty key="build.testlog" value="${build.testlog}"/> - <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> - - <classpath> - <pathelement location="${build.classes}"/> - <pathelement location="${build.resources}"/> - <path refid="tests.classpath"/> - </classpath> - - <formatter type="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}"> - <patternset refid="tc-sso.includes"/> - </fileset> - </batchtest> - </junit> + <run-junit junit.patternset="tc-sso.includes" /> <stop-jboss/> <wait-on-shutdown conf="tomcat-sso"/> </target> @@ -1034,6 +959,7 @@ </and> </waitfor> <fail message="Timeout waiting for binding-manager2 to start" if="cluster.timeout"/> + <run-junit junit.patternset="binding-manager.includes" /> <stop-jboss url="jnp://localhost:1299"/> <stop-jboss url="jnp://localhost:1199"/> </target> @@ -1076,40 +1002,9 @@ </target> <target name="deployment-service-unit-tests"> - <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}"/> - <sysproperty key="build.testlog" value="${build.testlog}"/> - <sysproperty key="log4j.configuration" value="file:${build.resources}/log4j.xml"/> - <sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/> - - <classpath> - <pathelement location="${build.classes}"/> - <pathelement location="${build.resources}"/> - <path refid="tests.classpath"/> - </classpath> - - <formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter" - usefile="${junit.formatter.usefile}" - extension="-${jboss-junit-configuration}.xml"/> - - <batchtest todir="${build.reports}" - haltonerror="${junit.batchtest.haltonerror}" - haltonfailure="${junit.batchtest.haltonfailure}" - fork="${junit.batchtest.fork}"> - - <fileset dir="${build.classes}"> - <patternset refid="deployment-service.includes"/> - </fileset> - </batchtest> - </junit> + <run-junit junit.patternset="deployment-service.includes" + junit.configuration="${jboss-junit-configuration}" + /> </target> <!-- |