From: Adrian B. <ej...@us...> - 2004-12-22 20:31:06
|
User: ejort Date: 04/12/22 12:30:59 Modified: . Tag: Branch_4_0 build.xml Log: [JBAS-75] - Port binding manager regression test from 3.2.x Revision Changes Path No revision No revision 1.406.2.31 +30 -2 jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.30 retrieving revision 1.406.2.31 diff -u -r1.406.2.30 -r1.406.2.31 --- build.xml 22 Dec 2004 19:55:05 -0000 1.406.2.30 +++ build.xml 22 Dec 2004 20:30:37 -0000 1.406.2.31 @@ -6,7 +6,7 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.30 2004/12/22 19:55:05 starksm Exp $ --> +<!-- $Id: build.xml,v 1.406.2.31 2004/12/22 20:30:37 ejort Exp $ --> <project default="main" name="JBoss/Testsuite"> <import file="../tools/etc/buildmagic/build-common.xml"/> @@ -555,6 +555,7 @@ <antcall target="tomcat-ssl-tests"/> <antcall target="tomcat-sso-tests"/> <antcall target="tomcat-sso-clustered-tests"/> + <antcall target="test-example-binding-manager"/> <antcall target="tests-jacc-security"/> <antcall target="tests-report"/> <record name="${basedir}/build.log" action="stop"/> @@ -584,9 +585,8 @@ <target name="jboss-all-config-tests" description="The units tests which are run against the jboss all config"> - <start-jboss conf="all" jvmargs="-Djava.endorsed.dirs=${jboss.dist}/lib/endorsed -Xmx128m"/> + <start-jboss conf="all" jvmargs="-Xmx128m"/> <wait-on-host/> - <antcall target="tests-jaxr"/> <antcall target="tests-standard-unit"/> <antcall target="tests-client-unit"/> <antcall target="tests-security-basic-unit"/> @@ -595,6 +595,7 @@ <antcall target="tests-jbossmx-implementation"/> <antcall target="tests-jbossmx-performance"/> <antcall target="tests-iiop"/> + <antcall target="tests-jaxr"/> <antcall target="tests-webservice"/> <antcall target="tests-txtimer"/> <stop-jboss/> @@ -924,6 +925,33 @@ <stop-jboss url="${node0.jndi.url}"/> <stop-jboss url="${node1.jndi.url}"/> </target> + + <target name="test-example-binding-manager" + description="Test the example binding configuration" + depends="maybejars"> + <create-all-cluster-node conf="binding-manager1" ports="ports-01"/> + <create-all-cluster-node conf="binding-manager2" ports="ports-02"/> + <start-jboss conf="binding-manager1"/> + <echo>Waiting for http://localhost:8180</echo> + <waitfor maxwait="300" maxwaitunit="second" + checkevery="5" checkeveryunit="second" timeoutproperty="cluster.timeout"> + <and> + <http url="http://localhost:8180"/> + </and> + </waitfor> + <fail message="Timeout waiting for binding-manager1 to start" if="cluster.timeout"/> + <start-jboss conf="binding-manager2"/> + <echo>Waiting for http://localhost:8280</echo> + <waitfor maxwait="300" maxwaitunit="second" + checkevery="5" checkeveryunit="second" timeoutproperty="cluster.timeout"> + <and> + <http url="http://localhost:8280"/> + </and> + </waitfor> + <fail message="Timeout waiting for binding-manager2 to start" if="cluster.timeout"/> + <stop-jboss url="jnp://localhost:1299"/> + <stop-jboss url="jnp://localhost:1199"/> + </target> <!-- | Standard tests that should run successfully against a default JBoss |