3 TESTRESULT_FILE
=TestResult-op_il_seq_point.tmp
4 TOTAL
=$
(grep -c "<test-case" $TESTRESULT_FILE || true
)
5 FAILURES
=$
(grep -c "<failure>" $TESTRESULT_FILE || true
)
6 if [ "$FAILURES" -eq "0" ] && [ "$TOTAL" -ne "0" ]
12 MYLOCALE
=$
(echo $LANG | cut
-f1 -d'.')
14 MYHOSTNAME
=$
(hostname
-s)
19 echo " </results>" >> $TESTRESULT_FILE
20 echo " </test-suite>" >> $TESTRESULT_FILE
21 echo " </results>" >> $TESTRESULT_FILE
22 echo " </test-suite>" >> $TESTRESULT_FILE
23 echo " </results>" >> $TESTRESULT_FILE
24 echo " </test-suite>" >> $TESTRESULT_FILE
25 echo "</test-results>" >> $TESTRESULT_FILE
27 echo "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>" > $TESTRESULT_FILE.header
28 echo "<!--This file represents the results of running a test suite-->" >> $TESTRESULT_FILE.header
29 echo "<test-results name=\"regression-tests.dummy\" total=\"${TOTAL}\" failures=\"${FAILURES}\" not-run=\"0\" date=\"${MYDATE}\" time=\"${MYTIME}\">" >> $TESTRESULT_FILE.header
30 echo " <environment nunit-version=\"2.4.8.0\" clr-version=\"4.0.30319.17020\" os-version=\"Unix ${MYUNAME}\" platform=\"Unix\" cwd=\"${PWD}\" machine-name=\"${MYHOSTNAME}\" user=\"${USER}\" user-domain=\"${MYFQDN}\" />" >> $TESTRESULT_FILE.header
31 echo " <culture-info current-culture=\"${MYLOCALE}\" current-uiculture=\"${MYLOCALE}\" />" >> $TESTRESULT_FILE.header
32 echo " <test-suite name=\"op_il_seq_point-tests.dummy\" success=\"${PASS}\" time=\"0\" asserts=\"0\">" >> $TESTRESULT_FILE.header
33 echo " <results>" >> $TESTRESULT_FILE.header
34 echo " <test-suite name=\"MonoTests\" success=\"${PASS}\" time=\"0\" asserts=\"0\">" >> $TESTRESULT_FILE.header
35 echo " <results>" >> $TESTRESULT_FILE.header
36 echo " <test-suite name=\"op_il_seq_point\" success=\"${PASS}\" time=\"0\" asserts=\"0\">" >> $TESTRESULT_FILE.header
37 echo " <results>" >> $TESTRESULT_FILE.header
39 cat $TESTRESULT_FILE.header
$TESTRESULT_FILE > $
(basename $TESTRESULT_FILE .tmp
).xml
40 rm -f $TESTRESULT_FILE.header
$TESTRESULT_FILE