[jboss-cvs] jboss-portal/testsuite ...
Chris Laprun
chris.laprun at jboss.com
Fri Aug 11 18:57:04 EDT 2006
User: claprun
Date: 06/08/11 18:57:04
Modified: testsuite build.xml
Log:
- Renamed tests-modules to test-module and made it so that running individual module tests work.
Revision Changes Path
1.23 +32 -23 jboss-portal/testsuite/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/testsuite/build.xml,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- build.xml 31 Jul 2006 19:29:56 -0000 1.22
+++ build.xml 11 Aug 2006 22:57:04 -0000 1.23
@@ -64,7 +64,16 @@
<ant antfile="../${module}/build.xml" output="tests.log" dir="../${module}" target="tests"/>
</target>
- <target name="tests-modules">
+ <target name="test-module" depends="clean">
+ <server:start name="default"/>
+ <antcall target="agent-deploy"/>
+ <antcall target="internal-test-module"/>
+ <antcall target="agent-undeploy"/>
+ <server:stop name="default"/>
+ <antcall target="reports"/>
+ </target>
+
+ <target name="internal-test-module">
<antcall target="run-tests">
<param name="module" value="${module}"/>
</antcall>
@@ -76,37 +85,36 @@
</antcall>
</target>
-
<!-- executes all modules' tests -->
<target name="tests" depends="init">
<server:start name="default"/>
<sequential>
<antcall target="agent-deploy"/>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="common"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="cms"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="format"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="security"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="identity"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="server"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="portlet"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="wsrp"/>
</antcall>
- <antcall target="tests-modules">
+ <antcall target="internal-test-module">
<param name="module" value="core"/>
</antcall>
<antcall target="agent-undeploy"/>
@@ -162,7 +170,8 @@
</target>
<target name="help">
- <echo message="To run individual modules use the test-modules target with -Dmodule=the module you want to test"/>
+ <echo message="To run individual module tests use the test-module target with -Dmodule=the module you want to test,
+ e.g. ant -Dmodule=portlet test-module"/>
</target>
</project>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list