Author: bdaw
Date: 2008-01-07 02:32:16 -0500 (Mon, 07 Jan 2008)
New Revision: 9444
Modified:
modules/portlet/trunk/test/pom.xml
modules/portlet/trunk/test/src/test/build.xml
Log:
add possibility to call only one kind of tests in portlet
Modified: modules/portlet/trunk/test/pom.xml
===================================================================
--- modules/portlet/trunk/test/pom.xml 2008-01-07 06:36:03 UTC (rev 9443)
+++ modules/portlet/trunk/test/pom.xml 2008-01-07 07:32:16 UTC (rev 9444)
@@ -276,7 +276,7 @@
<executions>
<execution>
<id>test</id>
- <phase>integration-test</phase>
+ <phase>test</phase>
<configuration>
<tasks>
Modified: modules/portlet/trunk/test/src/test/build.xml
===================================================================
--- modules/portlet/trunk/test/src/test/build.xml 2008-01-07 06:36:03 UTC (rev 9443)
+++ modules/portlet/trunk/test/src/test/build.xml 2008-01-07 07:32:16 UTC (rev 9444)
@@ -10,16 +10,24 @@
<antcall target="package-tests"/>
- <antcall target="tests.local"/>
- <antcall target="tests.jboss"/>
- <antcall target="tests.tomcat"/>
+ <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.local"/>
+ <antcall target="tests.jboss"/>
+ <antcall target="tests.tomcat"/>
+ </target>
+ <target name="tests.call.single" if="tests">
+ <antcall target="tests.${tests}"/>
+ </target>
+
<target name="prepare_env">
<!--Relative path to target dir-->