[interp] Make newarr lockfree
[mono-project.git] / mono / mini / test_op_il_seq_point_headerfooter.sh
blob98a4450c95c21a3847e7e885c33a2948b146e4c7
1 #!/bin/sh -e
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" ]
7 then
8 PASS="True"
9 else
10 PASS="False"
12 MYLOCALE=$(echo $LANG | cut -f1 -d'.')
13 MYUNAME=$(uname -r)
14 MYHOSTNAME=$(hostname -s)
15 MYFQDN=$(hostname -f)
16 MYDATE=$(date +%F)
17 MYTIME=$(date +%T)
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