svn commit: r566415 - /xml/xindice/trunk/build.xml

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: vgritsenko
Date: Wed Aug 15 16:58:29 2007
New Revision: 566415

URL: http://svn.apache.org/viewvc?view=rev&rev=566415
Log:
fail if one of tests fails

Modified:
    xml/xindice/trunk/build.xml

Modified: xml/xindice/trunk/build.xml
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/build.xml?view=diff&rev=566415&r1=566414&r2=566415
==============================================================================
--- xml/xindice/trunk/build.xml (original)
+++ xml/xindice/trunk/build.xml Wed Aug 15 16:58:29 2007
@@ -144,7 +144,7 @@
     </target>
 
     <target name="test-unit" depends="compile-test">
-        <junit fork="yes" printsummary="yes" haltonfailure="no">
+        <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="test.fail">
             <jvmarg value="-Djava.endorsed.dirs=${basedir}/lib/endorsed"/>
             <jvmarg value="-Dxindice.home=${basedir}"/>
             <jvmarg value="-Dxindice.db.home=${basedir}/build/test-unit"/>
@@ -172,7 +172,7 @@
     </target>
 
     <target name="test-integration-embed" depends="compile-test">
-        <junit fork="yes" printsummary="yes" haltonfailure="no">
+        <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="test.fail">
             <jvmarg value="-Djava.endorsed.dirs=${basedir}/lib/endorsed"/>
             <jvmarg value="-Dxindice.home=${basedir}"/>
             <jvmarg value="-Dxindice.db.home=${basedir}/build/test-embed"/>
@@ -193,7 +193,7 @@
     </target>
 
     <target name="test-integration-uncompressed" depends="compile-test">
-        <junit fork="yes" printsummary="yes" haltonfailure="no">
+        <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="test.fail">
             <jvmarg value="-Djava.endorsed.dirs=${basedir}/lib/endorsed"/>
             <jvmarg value="-Dxindice.home=${basedir}"/>
             <jvmarg value="-Dxindice.db.home=${basedir}/build/test-uncompressed"/>
@@ -218,7 +218,7 @@
         <echo message="XML-RPC host/port='${test.xmlrpc.hostport}'"/>
         <echo message="XML-RPC service location='${test.xmlrpc.service-location}'"/>
 
-        <junit fork="yes" printsummary="yes" haltonfailure="no">
+        <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="test.fail">
             <jvmarg value="-Djava.endorsed.dirs=${basedir}/lib/endorsed"/>
             <jvmarg value="-Dxindice.home=${basedir}"/>
             <jvmarg value="-Dtest.xmlrpc.hostport=${test.xmlrpc.hostport}"/>
@@ -253,6 +253,7 @@
     </target>
     <target name="test" depends="test-all, test-report"
             description="Run all tests and generate all test reports">
+      <fail message="Tests failed. See test report for details." if="test.fail"/>
     </target>
     <target name="test-clean">
         <delete dir="${test.build.dir}"/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.