From: Thomas D. <tdi...@us...> - 2004-11-11 14:25:55
|
User: tdiesler Date: 04/11/11 06:25:49 Modified: . Tag: Branch_4_0 build.xml Log: Restore the vanished txtimer tests Revision Changes Path No revision No revision 1.406.2.24 +2236 -2178jbosstest/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/jbosstest/build.xml,v retrieving revision 1.406.2.23 retrieving revision 1.406.2.24 diff -u -r1.406.2.23 -r1.406.2.24 --- build.xml 5 Nov 2004 17:10:31 -0000 1.406.2.23 +++ build.xml 11 Nov 2004 14:25:46 -0000 1.406.2.24 @@ -6,2234 +6,2292 @@ <!-- See terms of license at http://www.gnu.org. --> <!-- ============================================================ --> -<!-- $Id: build.xml,v 1.406.2.23 2004/11/05 17:10:31 starksm Exp $ --> +<!-- $Id: build.xml,v 1.406.2.24 2004/11/11 14:25:46 tdiesler Exp $ --> <project default="main" name="JBoss/Testsuite"> - <import file="../tools/etc/buildmagic/build-common.xml"/> - <import file="../tools/etc/buildmagic/libraries.xml"/> - <import file="../tools/etc/buildmagic/modules.xml"/> - - <!-- ======================================================== --> - <!-- Initialization --> - <!-- ======================================================== --> - <tstamp> - <format property="TIMENOW" pattern="yyyy-MM-dd.HH-mm" timezone="GMT"/> - </tstamp> - <echo message="${TIMENOW}" file="run.tstamp"/> - - <property name="results_web" value="http://jboss.sourceforge.net/junit-results/32"/> - <property name="buildlog.level" value="info"/> - <property environment="env"/> - - <!-- Set a hostname property based on COMPUTERNAME for win32, HOSTNAME - otherwise and initialize the node0/node1 cluster hostnames to localhost - and ${hostname} by default. If you cannot route multicast traffic between - localhost and hostname, then you need to specify node0 and node1 binding - in the local.properties that can in order to be able to run the clustering - tests. - --> - <condition property="hostname" value="${env.COMPUTERNAME}"> + <import file="../tools/etc/buildmagic/build-common.xml"/> + <import file="../tools/etc/buildmagic/libraries.xml"/> + <import file="../tools/etc/buildmagic/modules.xml"/> + + <!-- ======================================================== --> + <!-- Initialization --> + <!-- ======================================================== --> + <tstamp> + <format property="TIMENOW" pattern="yyyy-MM-dd.HH-mm" timezone="GMT"/> + </tstamp> + <echo message="${TIMENOW}" file="run.tstamp"/> + + <property name="results_web" value="http://jboss.sourceforge.net/junit-results/32"/> + <property name="buildlog.level" value="info"/> + <property environment="env"/> + + <!-- Set a hostname property based on COMPUTERNAME for win32, HOSTNAME + otherwise and initialize the node0/node1 cluster hostnames to localhost + and ${hostname} by default. If you cannot route multicast traffic between + localhost and hostname, then you need to specify node0 and node1 binding + in the local.properties that can in order to be able to run the clustering + tests. + --> + <condition property="hostname" value="${env.COMPUTERNAME}"> + <os family="windows"/> + </condition> + <condition property="hostname" value="${env.HOSTNAME}"> + <not> <os family="windows"/> - </condition> - <condition property="hostname" value="${env.HOSTNAME}"> - <not> - <os family="windows"/> - </not> - </condition> - <!-- Cluster node0 defaults --> - <property name="node0" value="localhost"/> - <property name="node0.http.url" value="http://${node0}:8080"/> - <property name="node0.jndi.url" value="jnp://${node0}:1099"/> - <!-- Cluster node1 defaults --> - <property name="node1" value="${hostname}"/> - <property name="node1.http.url" value="http://${node1}:8080"/> - <property name="node1.jndi.url" value="jnp://${node1}:1099"/> - - <!--We will use local.properties file to provide some configuration to the testsuite - mainly for the Clustering framework. Please do not checkin your local.properties file - into CVS--> - <property file="local.properties"/> - - <!-- =================== --> - <!-- Basic Configuration --> - <!-- =================== --> - - <!-- Module name(s) & version --> - <property name="module.name" value="testsuite"/> - <property name="module.Name" value="JBoss Testsuite"/> - <property name="module.version" value="DEV"/> - - <!-- ========= --> - <!-- Libraries --> - <!-- ========= --> - <!-- The combined library classpath --> - <path id="library.classpath"> - <path refid="apache.avalon.classpath"/> - <path refid="apache.commons.classpath"/> - <path refid="apache.log4j.classpath"/> - <path refid="apache.xerces.classpath"/> - <path refid="apache.jaxme.classpath"/> - <path refid="wutka.dtdparser.classpath"/> - <path refid="dom4j.dom4j.classpath"/> - <path refid="oswego.concurrent.classpath"/> - <path refid="ibm.wsdl4j.classpath"/> - <path refid="jacorb.jacorb.classpath"/> - <path refid="jgroups.jgroups.classpath"/> - <path refid="junit.junit.classpath"/> - <path refid="junitejb.junitejb.classpath"/> - <path refid="javassist.classpath"/> - <path refid="sun.javamail.classpath"/> - <path refid="sun.servlet.classpath"/> - <path refid="trove.classpath"/> - - <!-- needed for JBossMQ selector tests --> - <path refid="gnu.regexp.classpath"/> - - <!-- needed for proxy tests --> - <path refid="apache.bcel.classpath"/> - <!-- needed for security login module tests --> - <path refid="hsqldb.hsqldb.classpath"/> - - <!-- Need hibernate jar for hibernate-based tests --> - <path refid="hibernate2.classpath"/> - <path refid="odmg.classpath"/> - <path refid="cglib.classpath"/> - </path> - - <!-- ======= --> - <!-- Modules --> - <!-- ======= --> - <!-- InternalServer --> - <!-- This could be a mistake. Perhaps, though, it would be a good idea to separate - tests that need internal jboss classes from those that don't. When I put it in, only - the jca XATxConnectionManagerUnitTestCase needed an internal class (the tx manager)--> - <property name="jboss.internal-server.root" value="${project.root}/server/output"/> - <property name="jboss.internal-server.lib" value="${jboss.internal-server.root}/lib"/> - <path id="jboss.internal-server.classpath"> - <pathelement path="${jboss.server.lib}/jboss.jar"/> - <pathelement path="${jboss.server.lib}/jboss-system.jar"/> - </path> + </not> + </condition> + <!-- Cluster node0 defaults --> + <property name="node0" value="localhost"/> + <property name="node0.http.url" value="http://${node0}:8080"/> + <property name="node0.jndi.url" value="jnp://${node0}:1099"/> + <!-- Cluster node1 defaults --> + <property name="node1" value="${hostname}"/> + <property name="node1.http.url" value="http://${node1}:8080"/> + <property name="node1.jndi.url" value="jnp://${node1}:1099"/> + + <!--We will use local.properties file to provide some configuration to the testsuite + mainly for the Clustering framework. Please do not checkin your local.properties file + into CVS--> + <property file="local.properties"/> + + <!-- =================== --> + <!-- Basic Configuration --> + <!-- =================== --> + + <!-- Module name(s) & version --> + <property name="module.name" value="testsuite"/> + <property name="module.Name" value="JBoss Testsuite"/> + <property name="module.version" value="DEV"/> + + <!-- ========= --> + <!-- Libraries --> + <!-- ========= --> + <!-- The combined library classpath --> + <path id="library.classpath"> + <path refid="apache.avalon.classpath"/> + <path refid="apache.commons.classpath"/> + <path refid="apache.log4j.classpath"/> + <path refid="apache.xerces.classpath"/> + <path refid="apache.jaxme.classpath"/> + <path refid="wutka.dtdparser.classpath"/> + <path refid="dom4j.dom4j.classpath"/> + <path refid="oswego.concurrent.classpath"/> + <path refid="ibm.wsdl4j.classpath"/> + <path refid="jacorb.jacorb.classpath"/> + <path refid="jgroups.jgroups.classpath"/> + <path refid="junit.junit.classpath"/> + <path refid="junitejb.junitejb.classpath"/> + <path refid="javassist.classpath"/> + <path refid="sun.javamail.classpath"/> + <path refid="sun.servlet.classpath"/> + <path refid="trove.classpath"/> + + <!-- needed for JBossMQ selector tests --> + <path refid="gnu.regexp.classpath"/> + + <!-- needed for proxy tests --> + <path refid="apache.bcel.classpath"/> + <!-- needed for security login module tests --> + <path refid="hsqldb.hsqldb.classpath"/> + + <!-- Need hibernate jar for hibernate-based tests --> + <path refid="hibernate2.classpath"/> + <path refid="odmg.classpath"/> + <path refid="cglib.classpath"/> + </path> + + <!-- ======= --> + <!-- Modules --> + <!-- ======= --> + <!-- InternalServer --> + <!-- This could be a mistake. Perhaps, though, it would be a good idea to separate + tests that need internal jboss classes from those that don't. When I put it in, only + the jca XATxConnectionManagerUnitTestCase needed an internal class (the tx manager)--> + <property name="jboss.internal-server.root" value="${project.root}/server/output"/> + <property name="jboss.internal-server.lib" value="${jboss.internal-server.root}/lib"/> + <path id="jboss.internal-server.classpath"> + <pathelement path="${jboss.server.lib}/jboss.jar"/> + <pathelement path="${jboss.server.lib}/jboss-system.jar"/> + </path> + + <!-- The combined dependant module classpath --> + <path id="dependentmodule.classpath"> + <path refid="jboss.aop.classpath"/> + <path refid="jboss.aspects.classpath"/> + <path refid="jboss.cache.classpath"/> + <path refid="jboss.cluster.classpath"/> + <path refid="jboss.common.classpath"/> + <path refid="jboss.hibernate.classpath"/> + <path refid="jboss.iiop.classpath"/> + <path refid="jboss.internal-server.classpath"/> + <path refid="jboss.j2ee.classpath"/> + <path refid="jboss.jaxrpc.classpath"/> + <path refid="jboss.jbossnet.classpath"/> + <path refid="jboss.jca.classpath"/> + <path refid="jboss.jmx.classpath"/> + <path refid="jboss.management.classpath"/> + <path refid="jboss.media.classpath"/> + <path refid="jboss.messaging.classpath"/> + <path refid="jboss.naming.classpath"/> + <path refid="jboss.remoting.classpath"/> + <path refid="jboss.security.classpath"/> + <path refid="jboss.server.classpath"/> + <path refid="jboss.system.classpath"/> + <path refid="jboss.transaction.classpath"/> + <path refid="jboss.varia.classpath"/> + <path refid="jboss.webservice.classpath"/> + </path> + + <!-- RMI Stub generation --> + <patternset id="rmic.includes" + description="The patternset passed to the compile-stubs target"> + <include name="org/jboss/test/cluster/test/DistributedStateTestCase$TestListener.class"/> + <include name="org/jboss/test/cluster/test/DRMTestCase$TestListener.class"/> + <include name="org/jboss/test/cts/test/ClientCallbackImpl.class"/> + <include name="org/jboss/test/jmx/invoker/Listener.class"/> + </patternset> + + <!-- ===== --> + <!-- Tasks --> + <!-- ===== --> + + <!-- Where source files live --> + <property name="source.java" value="${module.source}/main"/> + <property name="source.etc" value="${module.source}/etc"/> + <property name="source.docs" value="${module.source}/docs"/> + <property name="source.resources" value="${module.source}/resources"/> + <property name="source.stylesheets" value="${module.source}/stylesheets"/> + + <!-- Where build generated files will go --> + <property name="build.classes" value="${module.output}/classes"/> + <property name="build.lib" value="${module.output}/lib"/> + <property name="build.api" value="${module.output}/api"/> + <property name="build.etc" value="${module.output}/etc"/> + <property name="build.docs" value="${module.output}/docs"/> + <property name="build.resources" value="${module.output}/resources"/> + <property name="build.stylesheets" value="${module.output}/stylesheets"/> + <property name="build.reports" value="${module.output}/reports"/> + <property name="build.testlog" value="${module.output}/log"/> + + <!--xdoclet output directories--> + <property name="build.gen-src" value="${module.output}/gen-src/"/> + <!-- put ejb-jar.xml and other resources into build.resources--> + + <!-- Install/Release structure --> + <property name="install.id" value="${module.name}-${module.version}"/> + <property name="release.id" value="${install.id}"/> + <property name="install.root" value="${module.output}/${install.id}"/> + + <!-- The combined thirdparty classpath --> + <path id="thirdparty.classpath"> + <path refid="library.classpath"/> + <path refid="dependentmodule.classpath"/> + </path> + + <path id="javac.classpath"> + <path refid="thirdparty.classpath"/> + </path> + + <!-- classpath and local.classpath must have a value using with a path --> + <property name="classpath" value=""/> + <property name="local.classpath" value=""/> + + <!-- Classpath to build and run the tests --> + <path id="tests.classpath"> + <pathelement path="${classpath}"/> + <pathelement path="${local.classpath}"/> + <pathelement path="${project.tools}/lib/ant.jar"/> + <pathelement path="${project.tools}/lib/optional.jar"/> + <path refid="jboss.jmx.classpath"/> + <path refid="thirdparty.classpath"/> + </path> + + <!-- The classpath required to build javadocs. --> + <path id="javadoc.classpath"> + <path refid="tests.classpath"/> + </path> + + <!-- Packages to include when generating api documentation --> + <property name="javadoc.packages" value="org.jboss.*"/> + + <!-- Override JUnit defaults --> + <property name="junit.timeout" value="180000"/> <!-- 3 minutes --> + <property name="jbosstest.iterationcount" value="10"/> + <property name="jbosstest.threadcount" value="5"/> + <property name="jbosstest.beancount" value="5"/> + <property name="jbosstest.nodeploy" value="false"/> + <property name="junit.batchtest.todir" value="${build.reports}"/> + <property name="junit.jvm.options" value="-Ddummy"/> + <!-- Override JUnit Marathon defaults --> + <property name="marathon.timeout" value="3900000"/> <!-- 65 minutes --> + <property name="marathon.duration" value="3600000"/> <!-- 60 minutes --> + <property name="marathon.threadcount" value="100"/> + + <!-- xdoclet --> + <path id="xdoclet.task.classpath"> + <path refid="tests.classpath"/> + <fileset dir="${project.thirdparty}/xdoclet-xdoclet/lib"> + <include name="**/*.jar"/> + </fileset> + </path> + <property name="xdoclet.task.classpath" refid="xdoclet.task.classpath"/> + + <property name="xdoclet.mergedir" value="${project.tools}/etc/xdoclet/templates}"/> + + <target name="init"> + <record name="${basedir}/build.log" append="yes" action="start" loglevel="error"/> + <!-- Setup the version 1 classes so the tests compile --> + <mkdir dir="${build.gen-src}/org/jboss/test/cts/interfaces"/> + <copy tofile="${build.gen-src}/org/jboss/test/cts/interfaces/CtsCmp2Local.java" + file="${source.java}/org/jboss/test/cts/interfaces/CtsCmp2Local_V1.txt" + overwrite="false"/> + <mkdir dir="${build.gen-src}/org/jboss/test/classloader/scoping/singleton"/> + <copy tofile="${build.gen-src}/org/jboss/test/classloader/scoping/singleton/MySingleton.java" + file="${source.java}/org/jboss/test/classloader/scoping/singleton/MySingleton_V1.txt" + overwrite="false"/> + </target> + + <!-- ================================================================== --> + <!-- Compile --> + <!-- ================================================================== --> + <import file="imports/code-generation.xml"/> + + <!-- + | Compile everything. + | + | This target should depend on other compile-* targets for each + | different type of compile that needs to be performed, short of + | documentation compiles. + --> + <target name="compile" + depends="init, compile-classes, compile-xmbean-dds, compile-stubs, compile-etc, compile-stylesheets, compile-resources" + description="Compile all source files."/> + + <!-- Compile all class files --> + <target name="compile-classes" depends="compile-bean-sources, compile-mbean-sources, compile-proxycompiler-bean-sources, compile-classes-only"> + </target> + + <target name="compile-classes-only"> + <mkdir dir="${build.classes}"/> + <javac destdir="${build.classes}" + optimize="${javac.optimize}" + source="${javac.source}" + target="${javac.target}" + debug="${javac.debug}" + depend="${javac.depend}" + verbose="${javac.verbose}" + deprecation="${javac.deprecation}" + includeAntRuntime="${javac.include.ant.runtime}" + includeJavaRuntime="${javac.include.java.runtime}" + failonerror="${javac.fail.onerror}"> + <src path="${source.java}"/> + <src path="${build.gen-src}"/> + <classpath refid="tests.classpath"/> + </javac> + </target> + + <target name="compile-stubs"> + <rmic base="${build.classes}" + sourcebase="${build.classes}" + verify="${rmic.verify}" + iiop="${rmic.iiop}" + iiopopts="${rmic.iiopopts}" + idl="${rmic.idl}" + idlopts="${rmic.idlops}" + debug="${rmic.debug}" + stubVersion="${rmic.stubVersion}" + > + <classpath refid="tests.classpath"/> + <patternset refid="rmic.includes"/> + </rmic> + </target> + + <!-- Compile resource files --> + <target name="compile-resources"> + <mkdir dir="${build.resources}"/> + <copy todir="${build.resources}" filtering="no"> + <fileset dir="${source.resources}"> + <include name="**/*"/> + </fileset> + </copy> + </target> - <!-- The combined dependant module classpath --> - <path id="dependentmodule.classpath"> - <path refid="jboss.aop.classpath"/> - <path refid="jboss.aspects.classpath"/> - <path refid="jboss.cache.classpath"/> - <path refid="jboss.cluster.classpath"/> - <path refid="jboss.common.classpath"/> - <path refid="jboss.hibernate.classpath"/> - <path refid="jboss.iiop.classpath"/> - <path refid="jboss.internal-server.classpath"/> - <path refid="jboss.j2ee.classpath"/> - <path refid="jboss.jaxrpc.classpath"/> - <path refid="jboss.jbossnet.classpath"/> - <path refid="jboss.jca.classpath"/> - <path refid="jboss.jmx.classpath"/> - <path refid="jboss.management.classpath"/> - <path refid="jboss.media.classpath"/> - <path refid="jboss.messaging.classpath"/> - <path refid="jboss.naming.classpath"/> - <path refid="jboss.remoting.classpath"/> - <path refid="jboss.security.classpath"/> - <path refid="jboss.server.classpath"/> - <path refid="jboss.system.classpath"/> - <path refid="jboss.transaction.classpath"/> - <path refid="jboss.varia.classpath"/> - <path refid="jboss.webservice.classpath"/> - </path> - - <!-- RMI Stub generation --> - <patternset id="rmic.includes" - description="The patternset passed to the compile-stubs target"> - <include name="org/jboss/test/cluster/test/DistributedStateTestCase$TestListener.class"/> - <include name="org/jboss/test/cluster/test/DRMTestCase$TestListener.class"/> - <include name="org/jboss/test/cts/test/ClientCallbackImpl.class"/> - <include name="org/jboss/test/jmx/invoker/Listener.class"/> - </patternset> - - <!-- ===== --> - <!-- Tasks --> - <!-- ===== --> - - <!-- Where source files live --> - <property name="source.java" value="${module.source}/main"/> - <property name="source.etc" value="${module.source}/etc"/> - <property name="source.docs" value="${module.source}/docs"/> - <property name="source.resources" value="${module.source}/resources"/> - <property name="source.stylesheets" value="${module.source}/stylesheets"/> - - <!-- Where build generated files will go --> - <property name="build.classes" value="${module.output}/classes"/> - <property name="build.lib" value="${module.output}/lib"/> - <property name="build.api" value="${module.output}/api"/> - <property name="build.etc" value="${module.output}/etc"/> - <property name="build.docs" value="${module.output}/docs"/> - <property name="build.resources" value="${module.output}/resources"/> - <property name="build.stylesheets" value="${module.output}/stylesheets"/> - <property name="build.reports" value="${module.output}/reports"/> - <property name="build.testlog" value="${module.output}/log"/> - - <!--xdoclet output directories--> - <property name="build.gen-src" value="${module.output}/gen-src/"/> - <!-- put ejb-jar.xml and other resources into build.resources--> - - <!-- Install/Release structure --> - <property name="install.id" value="${module.name}-${module.version}"/> - <property name="release.id" value="${install.id}"/> - <property name="install.root" value="${module.output}/${install.id}"/> - - <!-- The combined thirdparty classpath --> - <path id="thirdparty.classpath"> - <path refid="library.classpath"/> - <path refid="dependentmodule.classpath"/> - </path> - - <path id="javac.classpath"> - <path refid="thirdparty.classpath"/> - </path> - - <!-- classpath and local.classpath must have a value using with a path --> - <property name="classpath" value=""/> - <property name="local.classpath" value=""/> - - <!-- Classpath to build and run the tests --> - <path id="tests.classpath"> - <pathelement path="${classpath}"/> - <pathelement path="${local.classpath}"/> - <pathelement path="${project.tools}/lib/ant.jar"/> - <pathelement path="${project.tools}/lib/optional.jar"/> - <path refid="jboss.jmx.classpath"/> - <path refid="thirdparty.classpath"/> - </path> - - <!-- The classpath required to build javadocs. --> - <path id="javadoc.classpath"> - <path refid="tests.classpath"/> - </path> - - <!-- Packages to include when generating api documentation --> - <property name="javadoc.packages" value="org.jboss.*"/> - - <!-- Override JUnit defaults --> - <property name="junit.timeout" value="180000"/> <!-- 3 minutes --> - <property name="jbosstest.iterationcount" value="10"/> - <property name="jbosstest.threadcount" value="5"/> - <property name="jbosstest.beancount" value="5"/> - <property name="jbosstest.nodeploy" value="false"/> - <property name="junit.batchtest.todir" value="${build.reports}"/> - <property name="junit.jvm.options" value="-Ddummy"/> - <!-- Override JUnit Marathon defaults --> - <property name="marathon.timeout" value="3900000"/> <!-- 65 minutes --> - <property name="marathon.duration" value="3600000"/> <!-- 60 minutes --> - <property name="marathon.threadcount" value="100"/> - - <!-- xdoclet --> - <path id="xdoclet.task.classpath"> - <path refid="tests.classpath"/> - <fileset dir="${project.thirdparty}/xdoclet-xdoclet/lib"> - <include name="**/*.jar"/> + <!-- Compile stylesheets files --> + <target name="compile-stylesheets"> + <mkdir dir="${build.stylesheets}"/> + <copy todir="${build.stylesheets}" filtering="yes"> + <fileset dir="${source.stylesheets}"> + <include name="**/*"/> </fileset> - </path> - <property name="xdoclet.task.classpath" refid="xdoclet.task.classpath"/> + </copy> + </target> - <property name="xdoclet.mergedir" value="${project.tools}/etc/xdoclet/templates}"/> + <!-- Compile etc files (manifests and such) --> + <target name="compile-etc"> + <mkdir dir="${build.etc}"/> + <copy todir="${build.etc}" filtering="yes"> + <fileset dir="${source.etc}"> + <include name="**/*"/> + </fileset> + </copy> + </target> - <target name="init"> - <record name="${basedir}/build.log" append="yes" action="start" loglevel="error"/> - <!-- Setup the version 1 classes so the tests compile --> - <mkdir dir="${build.gen-src}/org/jboss/test/cts/interfaces"/> - <copy tofile="${build.gen-src}/org/jboss/test/cts/interfaces/CtsCmp2Local.java" - file="${source.java}/org/jboss/test/cts/interfaces/CtsCmp2Local_V1.txt" - overwrite="false"/> - <mkdir dir="${build.gen-src}/org/jboss/test/classloader/scoping/singleton"/> - <copy tofile="${build.gen-src}/org/jboss/test/classloader/scoping/singleton/MySingleton.java" - file="${source.java}/org/jboss/test/classloader/scoping/singleton/MySingleton_V1.txt" - overwrite="false"/> - </target> - - <!-- ================================================================== --> - <!-- Compile --> - <!-- ================================================================== --> - <import file="imports/code-generation.xml"/> - - <!-- - | Compile everything. - | - | This target should depend on other compile-* targets for each - | different type of compile that needs to be performed, short of - | documentation compiles. - --> - <target name="compile" - depends="init, compile-classes, compile-xmbean-dds, compile-stubs, compile-etc, compile-stylesheets, compile-resources" - description="Compile all source files."/> - - <!-- Compile all class files --> - <target name="compile-classes" depends="compile-bean-sources, compile-mbean-sources, compile-proxycompiler-bean-sources, compile-classes-only"> - </target> - - <target name="compile-classes-only"> - <mkdir dir="${build.classes}"/> - <javac destdir="${build.classes}" - optimize="${javac.optimize}" - source="${javac.source}" - target="${javac.target}" - debug="${javac.debug}" - depend="${javac.depend}" - verbose="${javac.verbose}" - deprecation="${javac.deprecation}" - includeAntRuntime="${javac.include.ant.runtime}" - includeJavaRuntime="${javac.include.java.runtime}" - failonerror="${javac.fail.onerror}"> - <src path="${source.java}"/> - <src path="${build.gen-src}"/> - <classpath refid="tests.classpath"/> - </javac> - </target> - - <target name="compile-stubs"> - <rmic base="${build.classes}" - sourcebase="${build.classes}" - verify="${rmic.verify}" - iiop="${rmic.iiop}" - iiopopts="${rmic.iiopopts}" - idl="${rmic.idl}" - idlopts="${rmic.idlops}" - debug="${rmic.debug}" - stubVersion="${rmic.stubVersion}" - > - <classpath refid="tests.classpath"/> - <patternset refid="rmic.includes"/> - </rmic> - </target> - - <!-- Compile resource files --> - <target name="compile-resources"> - <mkdir dir="${build.resources}"/> - <copy todir="${build.resources}" filtering="no"> - <fileset dir="${source.resources}"> - <include name="**/*"/> - </fileset> - </copy> - </target> - - <!-- Compile stylesheets files --> - <target name="compile-stylesheets"> - <mkdir dir="${build.stylesheets}"/> - <copy todir="${build.stylesheets}" filtering="yes"> - <fileset dir="${source.stylesheets}"> - <include name="**/*"/> - </fileset> - </copy> - </target> - - <!-- Compile etc files (manifests and such) --> - <target name="compile-etc"> - <mkdir dir="${build.etc}"/> - <copy todir="${build.etc}" filtering="yes"> - <fileset dir="${source.etc}"> - <include name="**/*"/> - </fileset> - </copy> - </target> - - - <!-- Import the test jars build targets --> - <import file="imports/test-jars.xml"/> - - <!-- Import the jboss server run targets --> - <import file="imports/server-config.xml"/> - - <!-- ================================================================== --> - <!-- Cleaning --> - <!-- ================================================================== --> - - <!-- Clean up all build output --> - <target name="clean" - description="Cleans up most generated files."> - <delete dir="${module.output}"/> - </target> - - <!-- ================================================================== --> - <!-- Misc. --> - <!-- ================================================================== --> - - <target name="main" - description="Executes the default target (most)." - depends="most"/> - - <target name="all" - description="Builds everything." - depends="jars"/> - - <target name="most" - description="Builds almost everything." - depends="jars"/> - <target name="help" description="Displays the project help"> - <echo> - The main targets are: - + jars : compile the tests and build the test jars - + tests : the main tests entry points which runs all normal unit tests - Use ant -projecthelp to list all documented targets. - </echo> - </target> + <!-- Import the test jars build targets --> + <import file="imports/test-jars.xml"/> - <!-- ================================================================== --> - <!-- Tests --> - <!-- ================================================================== --> - - <macrodef name="wait-on-host"> - <attribute name="seconds" default="60"/> - <attribute name="host" default="localhost"/> - <sequential> - <echo message="Waiting for @{host} to start..."/> - <waitfor maxwait="@{seconds}" maxwaitunit="second" - checkevery="5" checkeveryunit="second" timeoutproperty="startup.timeout"> - <http url="http://@{host}:8080/"/> - </waitfor> - <fail message="Timeout waiting for nodes to start" if="startup.timeout"/> - </sequential> - </macrodef> - - <macrodef name="wait-on-shutdown"> - <attribute name="seconds" default="60"/> - <attribute name="conf"/> - <sequential> - <echo message="Waiting for '@{conf}' server to stop..."/> - <waitfor maxwait="@{seconds}" maxwaitunit="second" - checkevery="5" checkeveryunit="second" timeoutproperty="shutdown.timeout"> - <available file="server.log"> - <filepath> - <fileset dir="${jboss.dist}/server/@{conf}/log/" includes="server.log"> - <contains text="[org.jboss.system.server.Server] Shutdown complete"/> - </fileset> - </filepath> - </available> - </waitfor> - <fail message="Timeout waiting for '@{conf}' server to shutdown." if="shutdown.timeout"/> - </sequential> - </macrodef> - - <!-- patternsets for that require clustering to be enabled --> - <patternset id="cluster.includes"> - <include name="org/jboss/test/cluster/test/*TestCase.class"/> - <include name="org/jboss/test/testbeancluster/test/*TestCase.class"/> - </patternset> - <patternset id="cluster.excludes"> - <exclude name="org/jboss/test/cluster/test/*TestCase.class"/> - <exclude name="org/jboss/test/testbeancluster/test/*TestCase.class"/> - </patternset> - <patternset id="apache_tomcat.cluster.includes"> - <include name="org/jboss/test/cluster/apache_tomcat/*TestCase.class"/> - </patternset> - <patternset id="ha.includes"> - <include name="org/jboss/test/ha/jmx/test/*TestCase.class"/> - <include name="org/jboss/test/ha/singleton/test/*TestCase.class"/> - </patternset> - <!-- A patternset for that require a security config --> - <patternset id="security.includes"> - <include name="**/test/naming/test/Security*"/> - <include name="**/test/security/test/*UnitTestCase.class"/> - <include name="**/test/jmx/test/Secure*TestCase.class"/> - <include name="**/test/jrmp/test/DynLoadingUnitTestCase.class"/> - <include name="**/test/perf/test/SecurePerfStressTestCase.class"/> - </patternset> - <patternset id="security.excludes"> - <exclude name="**/test/naming/test/Security*"/> - <exclude name="**/test/security/test/*UnitTestCase.class"/> - <exclude name="**/test/jmx/test/Secure*"/> - <exclude name="**/test/jrmp/test/DynLoadingUnitTestCase.class"/> - <exclude name="**/test/perf/test/SecurePerfStressTestCase.class"/> - </patternset> - <!-- A patternset that requires jboss to run with a security manager --> - <patternset id="securitymgr.includes"> - <include name="**/test/securitymgr/test/*TestCase.class"/> - </patternset> - <patternset id="securitymgr.excludes"> - <exclude name="**/test/securitymgr/test/*"/> - </patternset> - <!-- Tests needing non-clustered tomcat SSO --> - <patternset id="tc-sso.includes"> - <include name="org/jboss/test/web/test/SingleSignOnUnitTestCase.class"/> - </patternset> - <patternset id="tc-sso.excludes"> - <exclude name="org/jboss/test/web/test/SingleSignOnUnitTestCase.class"/> - </patternset> - <!-- Tests needing clustered tomcat SSO --> - <patternset id="tc-sso-clustered.includes"> - <include name="org/jboss/test/web/test/ClusteredSingleSignOnUnitTestCase.class"/> - </patternset> - <patternset id="tc-sso-clustered.excludes"> - <exclude name="org/jboss/test/web/test/ClusteredSingleSignOnUnitTestCase.class"/> - </patternset> - <!-- Tests needing tomcat SSL --> - <patternset id="tc-ssl.includes"> - <include name="org/jboss/test/web/test/ssl/*TestCase.class"/> - </patternset> - <patternset id="tc-ssl.excludes"> - <exclude name="org/jboss/test/web/test/ssl/*"/> - </patternset> - <!-- Tests needing IIOP setup --> - <patternset id="iiop.includes"> - <include name="org/jboss/test/*iiop/test/*TestCase.class"/> - </patternset> - <patternset id="iiop.excludes"> - <exclude name="org/jboss/test/*iiop/test/*"/> - </patternset> - <!-- Tests needing jboss.net setup --> - <patternset id="jbossnet.includes"> - <include name="org/jboss/test/jbossnet/**/*TestCase.class"/> - </patternset> - <patternset id="jbossnet.excludes"> - <exclude name="org/jboss/test/jbossnet/**"/> - </patternset> - <!-- Tests needing xml binding setup --> - <patternset id="jbossxb.includes"> - <include name="org/jboss/test/xml/*TestCase.class"/> - </patternset> - <patternset id="jbossxb.excludes"> - <exclude name="org/jboss/test/xml/*TestCase.class"/> - </patternset> - <patternset id="jaxr.includes"> - <include name="org/jboss/test/jaxr/**/*TestCase.class"/> - </patternset> - - <!-- Tests that are currently broken --> - <patternset id="badtest.excludes"> - <exclude name="org/jboss/test/aop/test/RemotingUnitTestCase"/> - <!-- The media ejb is not active --> - <exclude name="org/jboss/test/media/**"/> - <!-- Needs apache ? --> - <exclude name="org/jboss/test/cluster/httpsessionreplication/**"/> - <exclude name="org/jboss/test/cache/test/local/ConcurrentTransactionalUnitTestCase.class"/> - </patternset> - - <!-- The union of the excludes --> - <patternset id="all.excludes"> - <patternset refid="badtest.excludes"/> - <patternset refid="cluster.excludes"/> - <patternset refid="security.excludes"/> - <patternset refid="securitymgr.excludes"/> - <patternset refid="tc-sso.excludes"/> - <patternset refid="tc-sso-clustered.excludes"/> - <patternset refid="tc-ssl.excludes"/> - <patternset refid="iiop.excludes"/> - <patternset refid="jbossnet.excludes"/> - <patternset refid="jbossxb.excludes"/> - </patternset> + <!-- Import the jboss server run targets --> + <import file="imports/server-config.xml"/> - <!-- A target that allows for conditional dependency on the compilation and + <!-- ================================================================== --> + <!-- Cleaning --> + <!-- ================================================================== --> - --> - <target name="maybejars" - unless="nojars"> - <antcall target="jars" inheritRefs="true"/> - </target> - - <!-- The top level entry point for all tests that can be run against - variations of the standard jboss dist. This does not include long - running benchmark oriented tests. - --> - <target name="tests" description="Execute all non-benchmark tests." - depends="maybejars"> - <record name="${basedir}/build.log" append="no" action="start" loglevel="${buildlog.level}"/> - <property name="nojars" value="true"/> - <antcall target="jboss-minimal-tests"/> - <antcall target="jboss-all-config-tests"/> - <antcall target="tests-security-manager"/> - <antcall target="tests-clustering"/> - <antcall target="tomcat-ssl-tests"/> - <antcall target="tomcat-sso-tests"/> - <antcall target="tomcat-sso-clustered-tests"/> - <antcall target="tests-jacc-security"/> - <antcall target="tests-report"/> - <record name="${basedir}/build.log" action="stop"/> - </target> - - <target name="tests-stress" description="Execute all stress tests." - depends="tests-standard-stress, - tests-report"> - </target> - - <target name="jboss-minimal-tests" - description="Validate the minimal config"> - <start-jboss conf="minimal" host="${node0}"/> - <copy file="${build.lib}/shutdown.sar" - todir="${jboss.dist}/server/minimal/deploy"/> - <!-- Wait for the 1099 jndi port --> - <waitfor maxwait="30" maxwaitunit="second" - checkevery="5" checkeveryunit="second" timeoutproperty="minimal.timeout"> - <and> - <socket server="${node0}" port="1099"/> - </and> - </waitfor> - <fail message="Timeout waiting for minimal to start" if="minimal.timeout"/> - <echo message="Minimal server started, stopping"/> - <delete file="${jboss.dist}/server/minimal/deploy/shutdown.sar"/> - </target> - - <target name="jboss-all-config-tests" - description="The units tests which are run against the jboss all config"> - <start-jboss conf="all" jvmargs="-Xmx128m"/> - <wait-on-host/> - <antcall target="tests-standard-unit"/> - <antcall target="tests-client-unit"/> - <antcall target="tests-security-basic-unit"/> - <antcall target="tests-standard-stress"/> - <antcall target="tests-jbossmx-compliance"/> - <antcall target="tests-jbossmx-implementation"/> - <antcall target="tests-jbossmx-performance"/> - <antcall target="tests-iiop"/> - <antcall target="test-webservice"/> - <antcall target="tests-jaxr"/> - <stop-jboss/> - <wait-on-shutdown conf="all"/> - </target> - - <target name="tests-apache-tomcat-clustering" - description="Execute clustering tests requiring an apache load balanced two TC nodes."> - <echo message="Will read config info from local.propeties file in testsuite dir"/> - <!-- Definition of apache is in imports/server-config.xml --> - <apache location="${apache.location}" action-type="start"/> - <create-cluster-node conf="node0"/> - <start-jboss conf="node0" host="${node0}"/> - <create-cluster-node conf="node1"/> - <start-jboss conf="node1" host="${node1}"/> - <echo message="Waiting for nodes to start..."/> - <waitfor maxwait="120" maxwaitunit="second" - checkevery="5" checkeveryunit="second" timeoutproperty="cluster.timeout"> - <and> - <http url="${node0.http.url}"/> - <http url="${node1.http.url}"/> - </and> - </waitfor> - <fail message="Timeout waiting for nodes to start" if="cluster.timeout"/> - <echo message="Nodes have started, waiting for cluster to stablize..."/> + <!-- Clean up all build output --> + <target name="clean" + description="Cleans up most generated files."> + <delete dir="${module.output}"/> + </target> - <!-- Need a custom condition that queries for the node membership == 2 --> - <echo message="Going to call target tests-clustering-unit"/> + <!-- ================================================================== --> + <!-- Misc. --> + <!-- ================================================================== --> - <antcall target="tests-clustering-unit"> - <param name="cluster.includes.refid" value="apache_tomcat.cluster.includes"/> - </antcall> - <stop-jboss url="${node0.jndi.url}"/> - <stop-jboss url="${node1.jndi.url}"/> - <apache location="${apache.location}" action-type="stop"/> - </target> - - <!-- Tests for the ha stuff Ivelin wrote--> - <target name="tests-ha" description="Execute ha tests."> - <echo message="Going to call target tests-ha-unit"/> - <antcall target="tests-ha-unit"></antcall> - </target> - - <target name="tests-clustering" - description="Execute clustering tests requiring two nodes."> - <antcall target="tests-clustering-startup"/> - <echo message="Waiting for nodes to start..."/> - <waitfor maxwait="120" maxwaitunit="second" - checkevery="5" checkeveryunit="second" timeoutproperty="cluster.timeout"> - <and> - <http url="${node0.http.url}"/> - <http url="${node1.http.url}"/> - </and> - </waitfor> - <fail message="Timeout waiting for nodes to start" if="cluster.timeout"/> - <echo message="Nodes have started, waiting for cluster to stablize..."/> + <target name="main" + description="Executes the default target (most)." + depends="most"/> - <!-- Need a custom condition that queries for the node membership == 2 --> - <echo message="Going to call target tests-clustering-unit"/> + <target name="all" + description="Builds everything." + depends="jars"/> - <antcall target="tests-clustering-unit"> - <param name="cluster.includes.refid" value="cluster.includes"/> - </antcall> - <antcall target="tests-clustering-shutdown"/> - </target> - <target name="tests-clustering-startup" unless="${tests.clustering.skip.startup}"> - <create-cluster-node conf="node0"/> - <start-jboss conf="node0" host="${node0}"/> - <create-cluster-node conf="node1"/> - <start-jboss conf="node1" host="${node1}"/> - </target> - <target name="tests-clustering-shutdown" unless="${tests.clustering.skip.startup}"> - <stop-jboss url="${node0.jndi.url}"/> - <stop-jboss url="${node1.jndi.url}"/> - </target> + <target name="most" + description="Builds almost everything." + depends="jars"/> - <!-- Tests of tomcat needing a ssl connector - --> - <target name="tomcat-ssl-tests" - description="Tomcat tests requiring an SSL connector"> - <!-- Create the ssl enabled tomcat config --> - <create-config baseconf="default" newconf="tomcat-ssl"> - <patternset> - <include name="conf/**"/> - <include name="deploy/jbossweb*.sar/**"/> - <include name="deploy/jmx-invoker-service.xml"/> - <include name="lib/**"/> - </patternset> - </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" - 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}"/> - <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}"> + <target name="help" description="Displays the project help"> + <echo> + The main targets are: + + jars : compile the tests and build the test jars + + tests : the main tests entry points which runs all normal unit tests + Use ant -projecthelp to list all documented targets. + </echo> + </target> - <fileset dir="${build.classes}"> - <patternset refid="tc-ssl.includes"/> + <!-- ================================================================== --> + <!-- Tests --> + <!-- ================================================================== --> + + <macrodef name="wait-on-host"> + <attribute name="seconds" default="60"/> + <attribute name="host" default="localhost"/> + <sequential> + <echo message="Waiting for @{host} to start..."/> + <waitfor maxwait="@{seconds}" maxwaitunit="second" + checkevery="5" checkeveryunit="second" timeoutproperty="startup.timeout"> + <http url="http://@{host}:8080/"/> + </waitfor> + <fail message="Timeout waiting for nodes to start" if="startup.timeout"/> + </sequential> + </macrodef> + + <macrodef name="wait-on-shutdown"> + <attribute name="seconds" default="60"/> + <attribute name="conf"/> + <sequential> + <echo message="Waiting for '@{conf}' server to stop..."/> + <waitfor maxwait="@{seconds}" maxwaitunit="second" + checkevery="5" checkeveryunit="second" timeoutproperty="shutdown.timeout"> + <available file="server.log"> + <filepath> + <fileset dir="${jboss.dist}/server/@{conf}/log/" includes="server.log"> + <contains text="[org.jboss.system.server.Server] Shutdown complete"/> </fileset> - </batchtest> - </junit> - <stop-jboss/> - </target> + </filepath> + </available> + </waitfor> + <fail message="Timeout waiting for '@{conf}' server to shutdown." if="shutdown.timeout"/> + </sequential> + </macrodef> + + <!-- patternsets for that require clustering to be enabled --> + <patternset id="cluster.includes"> + <include name="org/jboss/test/cluster/test/*TestCase.class"/> + <include name="org/jboss/test/testbeancluster/test/*TestCase.class"/> + </patternset> + <patternset id="cluster.excludes"> + <exclude name="org/jboss/test/cluster/test/*TestCase.class"/> + <exclude name="org/jboss/test/testbeancluster/test/*TestCase.class"/> + </patternset> + <patternset id="apache_tomcat.cluster.includes"> + <include name="org/jboss/test/cluster/apache_tomcat/*TestCase.class"/> + </patternset> + <patternset id="ha.includes"> + <include name="org/jboss/test/ha/jmx/test/*TestCase.class"/> + <include name="org/jboss/test/ha/singleton/test/*TestCase.class"/> + </patternset> + <!-- A patternset for that require a security config --> + <patternset id="security.includes"> + <include name="**/test/naming/test/Security*"/> + <include name="**/test/security/test/*UnitTestCase.class"/> + <include name="**/test/jmx/test/Secure*TestCase.class"/> + <include name="**/test/jrmp/test/DynLoadingUnitTestCase.class"/> + <include name="**/test/perf/test/SecurePerfStressTestCase.class"/> + </patternset> + <patternset id="security.excludes"> + <exclude name="**/test/naming/test/Security*"/> + <exclude name="**/test/security/test/*UnitTestCase.class"/> + <exclude name="**/test/jmx/test/Secure*"/> + <exclude name="**/test/jrmp/test/DynLoadingUnitTestCase.class"/> + <exclude name="**/test/perf/test/SecurePerfStressTestCase.class"/> + </patternset> + <!-- A patternset that requires jboss to run with a security manager --> + <patternset id="securitymgr.includes"> + <include name="**/test/securitymgr/test/*TestCase.class"/> + </patternset> + <patternset id="securitymgr.excludes"> + <exclude name="**/test/securitymgr/test/*"/> + </patternset> + <!-- Tests needing non-clustered tomcat SSO --> + <patternset id="tc-sso.includes"> + <include name="org/jboss/test/web/test/SingleSignOnUnitTestCase.class"/> + </patternset> + <patternset id="tc-sso.excludes"> + <exclude name="org/jboss/test/web/test/SingleSignOnUnitTestCase.class"/> + </patternset> + <!-- Tests needing clustered tomcat SSO --> + <patternset id="tc-sso-clustered.includes"> + <include name="org/jboss/test/web/test/ClusteredSingleSignOnUnitTestCase.class"/> + </patternset> + <patternset id="tc-sso-clustered.excludes"> + <exclude name="org/jboss/test/web/test/ClusteredSingleSignOnUnitTestCase.class"/> + </patternset> + <!-- Tests needing tomcat SSL --> + <patternset id="tc-ssl.includes"> + <include name="org/jboss/test/web/test/ssl/*TestCase.class"/> + </patternset> + <patternset id="tc-ssl.excludes"> + <exclude name="org/jboss/test/web/test/ssl/*"/> + </patternset> + <!-- Tests needing IIOP setup --> + <patternset id="iiop.includes"> + <include name="org/jboss/test/*iiop/test/*TestCase.class"/> + </patternset> + <patternset id="iiop.excludes"> + <exclude name="org/jboss/test/*iiop/test/*"/> + </patternset> + <!-- Tests needing jboss.net setup --> + <patternset id="jbossnet.includes"> + <include name="org/jboss/test/jbossnet/**/*TestCase.class"/> + </patternset> + <patternset id="jbossnet.excludes"> + <exclude name="org/jboss/test/jbossnet/**"/> + </patternset> + <!-- Tests needing xml binding setup --> + <patternset id="jbossxb.includes"> + <include name="org/jboss/test/xml/*TestCase.class"/> + </patternset> + <patternset id="jbossxb.excludes"> + <exclude name="org/jboss/test/xml/*TestCase.class"/> + </patternset> + <patternset id="jaxr.includes"> + <include name="org/jboss/test/jaxr/**/*TestCase.class"/> + </patternset> + + <!-- Tests that are currently broken --> + <patternset id="badtest.excludes"> + <exclude name="org/jboss/test/aop/test/RemotingUnitTestCase"/> + <!-- The media ejb is not active --> + <exclude name="org/jboss/test/media/**"/> + <!-- Needs apache ? --> + <exclude name="org/jboss/test/cluster/httpsessionreplication/**"/> + <exclude name="org/jboss/test/cache/test/local/ConcurrentTransactionalUnitTestCase.class"/> + </patternset> + + <!-- The union of the excludes --> + <patternset id="all.excludes"> + <patternset refid="badtest.excludes"/> + <patternset refid="cluster.excludes"/> + <patternset refid="security.excludes"/> + <patternset refid="securitymgr.excludes"/> + <patternset refid="tc-sso.excludes"/> + <patternset refid="tc-sso-clustered.excludes"/> + <patternset refid="tc-ssl.excludes"/> + <patternset refid="iiop.excludes"/> + <patternset refid="jbossnet.excludes"/> + <patternset refid="jbossxb.excludes"/> + </patternset> - <!-- Tests of tomcat requiring SSO configured - --> - <target name="tomcat-sso-tests" - description="Tomcat tests requiring SSO configured"> - <!-- Create the sso enabled tomcat config starting with the default config --> - <create-config baseconf="default" newconf="tomcat-sso"> - <patternset> - <include name="conf/**"/> - <include name="deploy/jbossweb*.sar/**"/> - <include name="deploy/jmx-invoker-service.xml"/> - <include name="deploy/ear-deployer.xml"/> - <include name="deploy/ejb-deployer.xml"/> - <include name="deploy/hsqldb-ds.xml"/> - <include name="deploy/jbossjca-service.xml"/> - <include name="deploy/jboss-local-jdbc.rar"/> - <include name="deploy/jboss-jdbc-metadata.sar"/> - <include name="lib/**"/> - </patternset> - </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}"> + <!-- A target that allows for conditional dependency on the compilation and - <fileset dir="${build.classes}"> - <patternset refid="tc-sso.includes"/> - </fileset> - </batchtest> - </junit> - <stop-jboss/> - </target> - - <target name="tomcat-sso-clustered-tests" - description="Tomcat tests requiring clustered SSO configured" - depends="maybejars"> - <!-- Create the sso enabled tomcat config starting with the default config - --> - <create-config baseconf="all" newconf="tomcat-sso-cluster0" - newconf-src="tomcat-sso-cluster"> - <patternset> - <include name="conf/**"/> - <include name="deploy/jbossweb*.sar/**"/> - <include name="deploy/jmx-invoker-service.xml"/> - <include name="deploy/ear-deployer.xml"/> - <include name="deploy/ejb-deployer.xml"/> - <include name="deploy/hsqldb-ds.xml"/> - <include name="deploy/jbossjca-service.xml"/> - <include name="deploy/jboss-local-jdbc.rar"/> - <include name="deploy/jboss-jdbc-metadata.sar"/> - <include name="deploy/tc5-cluster-service.xml"/> - <include name="lib/**"/> - </patternset> - </create-config> - <create-config baseconf="all" newconf="tomcat-sso-cluster1" - newconf-src="tomcat-sso-cluster"> - <patternset> - <include name="conf/**"/> - <include name="deploy/jbossweb*.sar/**"/> - <include name="deploy/jmx-invoker-service.xml"/> - <include name="deploy/ear-deployer.xml"/> - <include name="deploy/ejb-deployer.xml"/> - <include name="deploy/hsqldb-ds.xml"/> - <include name="deploy/jbossjca-service.xml"/> - <include name="deploy/jboss-local-jdbc.rar"/> - <include name="deploy/jboss-jdbc-metadata.sar"/> - <include name="deploy/tc5-cluster-service.xml"/> - <include name="lib/**"/> - </patternset> - </create-config> - - <start-jboss conf="tomcat-sso-cluster0" host="${node0}"/> - <start-jboss conf="tomcat-sso-cluster1" host="${node1}"/> - <waitfor maxwait="120" maxwaitunit="second" - checkevery="5" checkeveryunit="second" timeoutproperty="cluster.timeout"> - <and> - <http url="${node0.http.url}"/> - <http url="${node1.http.url}"/> - </and> - </waitfor> - <fail message="Timeout waiting for nodes to start" if="cluster.timeout"/> - <echo message="Nodes have started, waiting for cluster to stablize..."/> - <sleep seconds="10"/> - <antcall target="tests-clustering-unit"> - <param name="cluster.includes.refid" value="tc-sso-clustered.includes"/> - </antcall> - - <stop-jboss url="${node0.jndi.url}"/> - <stop-jboss url="${node1.jndi.url}"/> - </target> - - <!-- - | Standard tests that should run successfully against a default JBoss - | server distribution build. + --> + <target name="maybejars" + unless="nojars"> + <antcall target="jars" inheritRefs="true"/> + </target> + + <!-- The top level entry point for all tests that can be run against + variations of the standard jboss dist. This does not include long + running benchmark oriented tests. + --> + <target name="tests" description="Execute all non-benchmark tests." + depends="maybejars"> + <record name="${basedir}/build.log" append="no" action="start" loglevel="${buildlog.level}"/> + <property name="nojars" value="true"/> + <antcall target="jboss-minimal-tests"/> + <antcall target="jboss-all-config-tests"/> + <antcall target="tests-security-manager"/> + <antcall target="tests-clustering"/> + <antcall target="t... [truncated message content] |