You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2009/05/12 20:51:49 UTC
svn commit: r774016 - /incubator/cassandra/trunk/build.xml
Author: jbellis
Date: Tue May 12 18:51:49 2009
New Revision: 774016
URL: http://svn.apache.org/viewvc?rev=774016&view=rev
Log:
fix junit-related build issues. patch by johano; reviewed by jbellis for CASSANDRA-164
Modified:
incubator/cassandra/trunk/build.xml
Modified: incubator/cassandra/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/build.xml?rev=774016&r1=774015&r2=774016&view=diff
==============================================================================
--- incubator/cassandra/trunk/build.xml (original)
+++ incubator/cassandra/trunk/build.xml Tue May 12 18:51:49 2009
@@ -189,7 +189,9 @@
<target name="test" depends="build-test">
<echo message="running tests"/>
<mkdir dir="${build.test.dir}/cassandra"/>
- <junit fork="on">
+ <mkdir dir="${build.test.dir}/output"/>
+ <junit fork="on" failureproperty="testfailed">
+ <formatter type="xml" usefile="true"/>
<formatter type="brief" usefile="false"/>
<jvmarg value="-Dstorage-config=${test.conf}"/>
<jvmarg value="-ea"/>
@@ -200,10 +202,12 @@
<pathelement location="${cobertura.dir}/cobertura.jar"/>
<pathelement location="${test.conf}"/>
</classpath>
- <batchtest todir="${build.dir}/test/output">
+ <batchtest todir="${build.test.dir}/output">
<fileset dir="${test.classes}" includes="**/${test.name}.class" />
</batchtest>
</junit>
+
+ <fail if="testfailed" message="Some test(s) failed."/>
</target>
<!-- instruments the classes to later create code coverage reports -->