|
From: Anil S. <osd...@us...> - 2004-07-09 21:19:30
|
User: osdchicago
Date: 04/07/09 14:19:24
Modified: . build.xml
Log:
Test Framework for HttpSessionReplication on jboss-head
Revision Changes Path
1.371 +110 -5 jbosstest/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/build.xml,v
retrieving revision 1.370
retrieving revision 1.371
diff -u -r1.370 -r1.371
--- build.xml 7 Jun 2004 20:40:36 -0000 1.370
+++ build.xml 9 Jul 2004 21:19:24 -0000 1.371
@@ -15,7 +15,7 @@
<!-- -->
<!-- ====================================================================== -->
-<!-- $Id: build.xml,v 1.370 2004/06/07 20:40:36 ejort Exp $ -->
+<!-- $Id: build.xml,v 1.371 2004/07/09 21:19:24 osdchicago Exp $ -->
<project default="main" name="JBoss/Testsuite">
@@ -1441,6 +1441,7 @@
_jars-security,
_jars-testbean,
_jars-testbeancluster,
+ _jars-httpsessionreplication,
_jars-threading,
_jars-timer,
_jars-tm,
@@ -4675,7 +4676,6 @@
<include name="org/jboss/test/testbeancluster/interfaces/**"/>
<include name="org/jboss/test/testbean/bean/**"/>
<include name="org/jboss/test/testbeancluster/bean/**"/>
- <include name="org/somepackage/**"/>
</fileset>
<fileset dir="${build.resources}/testbeancluster">
<include name="**/*.xml"/>
@@ -4683,6 +4683,26 @@
</jar>
</target>
+ <!-- httpsessionreplication test -->
+ <target name="_jars-httpsessionreplication">
+ <mkdir dir="${build.lib}"/>
+
+ <!-- build httpsessionreplication.jar -->
+ <jar jarfile="${build.lib}/httpsessionreplication.jar">
+ <!--
+ <fileset dir="${build.classes}">
+ <patternset refid="jboss.test.util.ejb.set"/>
+ <include name="org/jboss/test/testbean/interfaces/**"/>
+ <include name="org/jboss/test/testbeancluster/interfaces/**"/>
+ <include name="org/jboss/test/testbean/bean/**"/>
+ <include name="org/jboss/test/testbeancluster/bean/**"/>
+ </fileset>
+ -->
+ <fileset dir="${build.resources}/cluster">
+ <include name="**/*.xml"/>
+ </fileset>
+ </jar>
+ </target>
<!-- web test -->
<target name="_jars-web" depends="_jars-cts">
<mkdir dir="${build.lib}"/>
@@ -5592,8 +5612,18 @@
</target>
<target name="tests-clustering-noreport"
- depends="init, tests-clustering-unit">
+ depends="init, tests-clustering-unit,tests-http-clustering-unit">
+ </target>
+
+ <!-- HTTP Clustering Tests-->
+ <target name="tests-http-clustering-noreport"
+ depends="init, tests-http-clustering-unit">
+ </target>
+
+ <target name="tests-http-clustering" description="Execute clustering tests requiring two nodes."
+ depends="init, tests-http-clustering-noreport, tests-report-xml">
</target>
+ <!--Till Here-->
<!--
| Helper for running all jbossmx tests
@@ -5737,6 +5767,8 @@
<target name="tests-clustering-unit" depends="maybejars">
<mkdir dir="${build.reports}"/>
<mkdir dir="${build.testlog}"/>
+ <!-- Remove the test.log so each run has a fresh log -->
+ <delete file="${build.testlog}/test.log"/>
<junit dir="${module.output}"
printsummary="${junit.printsummary}"
haltonerror="${junit.haltonerror}"
@@ -5769,13 +5801,86 @@
fork="${junit.batchtest.fork}">
<fileset dir="${build.classes}">
-
<include name="org/jboss/test/testbeancluster/**/*UnitTestCase*.class"/>
-
</fileset>
</batchtest>
</junit>
</target>
+
+ <!-- Test HTTP Clustering -->
+ <target name="tests-http-clustering-unit" depends="maybejars">
+ <mkdir dir="${build.reports}"/>
+ <mkdir dir="${build.testlog}"/>
+ <echo>first round test</echo>
+ <antcall target="tests-http-cluster"> </antcall>
+ <echo>Bringing down the first instance</echo>
+ <!-- <exec>shutdown.sh -s localhost:1199</exec> -->
+ <!--
+ <antcall target="shutdowninstance">
+ <param name="instanceport" value="localhost:1099"/>
+ </antcall>
+ <echo>Sleeping for 30 seconds</echo>
+ <sleep seconds="30" />
+ <echo>second round test</echo>
+ <antcall target="tests-http-cluster"> </antcall>
+ <echo>Bringing down the second instance</echo>
+ <antcall target="shutdowninstance">
+ <param name="instanceport" value="localhost:1199"/>
+ </antcall>
+ <echo>Sleeping for 30 seconds</echo>
+ <sleep seconds="30" />
+ <echo>Third round test(Http Session Replication must fail)</echo>
+ <antcall target="tests-http-cluster"> </antcall>
+ -->
+ </target>
+
+ <target name="shutdowninstance">
+ <echo>Shutting Down an Instance of JBoss Running</echo>
+ <java classname="org.jboss.Shutdown" fork="yes" >
+ <arg value="-s ${instanceport}"/>
+ <classpath>
+ <pathelement location="/Users/anil/jboss-head/build/output/jboss-4.0.0DR4/bin/shutdown.jar"/>
+ <pathelement location="/Users/anil/jboss-head/build/output/jboss-4.0.0DR4/client/jbossall-client.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+
+ <target name="tests-http-cluster">
+ <echo>Calling tests-http-cluster</echo>
+ <junit dir="${module.output}"
+ printsummary="${junit.printsummary}"
+ haltonerror="${junit.haltonerror}"
+ haltonfailure="${junit.haltonfailure}"
+ fork="${junit.fork}"
+ timeout="${junit.timeout}"
+ jvm="${junit.jvm}">
+
+ <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}">
+ <!-- Following added by Anil -->
+ <include name="org/jboss/test/cluster/**/*UnitTestCase*.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
<target name="tests-standalone-aop-unit" depends="maybejars">
<!--
|