Author: chris.laprun(a)jboss.com
Date: 2008-03-12 20:45:45 -0400 (Wed, 12 Mar 2008)
New Revision: 10277
Modified:
modules/web/trunk/web/src/test/build.xml
Log:
Added support for running tests only on tomcat or jboss using -Dtests=tomcat or
-Dtests=jboss, respectively.
Modified: modules/web/trunk/web/src/test/build.xml
===================================================================
--- modules/web/trunk/web/src/test/build.xml 2008-03-12 17:05:25 UTC (rev 10276)
+++ modules/web/trunk/web/src/test/build.xml 2008-03-13 00:45:45 UTC (rev 10277)
@@ -12,14 +12,31 @@
<antcall target="tests.local"/>
- <antcall target="tests.jboss-4.2"/>
- <antcall target="tests.tomcat-6"/>
+ <antcall target="tests.call.single"/>
+ <antcall target="tests.call.all"/>
<!--Cleanup-->
<delete dir="${test.temp.dir}"/>
</target>
+ <target name="tests.call.all" unless="tests">
+ <antcall target="tests.jboss"/>
+ <antcall target="tests.tomcat"/>
+ </target>
+
+ <target name="tests.call.single" if="tests">
+ <antcall target="tests.${tests}"/>
+ </target>
+
+ <!-- Aliases for easier test execution -->
+ <target name="tests.jboss">
+ <antcall target="tests.jboss-4.2"/>
+ </target>
+ <target name="tests.tomcat">
+ <antcall target="tests.tomcat-6"/>
+ </target>
+
<target name="prepare_env">
<!--Relative path to target dir-->