add some extra results info

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-01-14 02:38:55 +00:00
parent b8b37205e3
commit 4f6e43a758
1 changed files with 4 additions and 3 deletions

View File

@ -232,7 +232,7 @@ databaseName=${db.name}
<!--
Macro to determine how many tests passed/failed
-->
<macrodef name="results">
<macrodef name="results.count">
<!-- Figure out the Passed/Failed counts -->
<sequential>
<resourcecount property="count.passed">
@ -374,13 +374,14 @@ databaseName=${db.name}
tests fail, so we need to parse the results file
for a string indicating whether or not it passed.
-->
<results.count />
<loadfile property="jpatck.results" srcfile="${tck.work}/jtData/log.txt" />
<condition property="jpatck.failed">
<contains string="${jpatck.results}" substring="Completed test run: not ok" />
</condition>
<fail if="jpatck.failed">Test Results: FAILED ${count.failed} tests!</fail>
<fail if="jpatck.failed">Test Results (${results.name}): FAILED ${count.failed} tests!</fail>
<!-- else -->
<echo>Test Results: PASSED!</echo>
<echo>Test Results (${results.name}): PASSED!</echo>
</target>
</project>