|
|
@@ -508,7 +508,7 @@ Legal: |
|
|
</target> |
|
|
</target> |
|
|
|
|
|
|
|
|
<!-- Compiles and runs the unit tests --> |
|
|
<!-- Compiles and runs the unit tests --> |
|
|
<target name="test" depends="dist-lite" if="junit.present" description="Runs the unit tests"> |
|
|
|
|
|
|
|
|
<target name="run-tests" depends="dist-lite" if="junit.present" description="Runs the unit tests"> |
|
|
<!-- Compile the unit tests --> |
|
|
<!-- Compile the unit tests --> |
|
|
<mkdir dir="${test.classes}"/> |
|
|
<mkdir dir="${test.classes}"/> |
|
|
<javac srcdir="src/testcases" |
|
|
<javac srcdir="src/testcases" |
|
|
@@ -567,7 +567,7 @@ Legal: |
|
|
tofile="${test.classes}/META-INF/ant-descriptor.xml"/> |
|
|
tofile="${test.classes}/META-INF/ant-descriptor.xml"/> |
|
|
|
|
|
|
|
|
<!-- Run all the tests --> |
|
|
<!-- Run all the tests --> |
|
|
<junit printsummary="on" fork="true"> |
|
|
|
|
|
|
|
|
<junit printsummary="on" fork="true" failureProperty="test.failed"> |
|
|
<formatter type="brief" usefile="false"/> |
|
|
<formatter type="brief" usefile="false"/> |
|
|
<classpath location="${build.classes}"/> |
|
|
<classpath location="${build.classes}"/> |
|
|
<classpath> |
|
|
<classpath> |
|
|
@@ -594,6 +594,10 @@ Legal: |
|
|
</junit> |
|
|
</junit> |
|
|
</target> |
|
|
</target> |
|
|
|
|
|
|
|
|
|
|
|
<target name="test" if="test.failed" depends="run-tests"> |
|
|
|
|
|
<fail> - One or more tests failed.</fail> |
|
|
|
|
|
</target> |
|
|
|
|
|
|
|
|
<!-- Creates the distribution --> |
|
|
<!-- Creates the distribution --> |
|
|
<target name="dist-lite" |
|
|
<target name="dist-lite" |
|
|
depends="jars" |
|
|
depends="jars" |
|
|
|