Small change to handling of integers in run-tests.

This commit is contained in:
Damien 2013-12-29 22:38:03 +00:00
parent 39977a56da
commit 046147dcd5

View File

@ -25,19 +25,19 @@ do
echo "pass $infile" echo "pass $infile"
$RM $outfile $RM $outfile
$RM $expfile $RM $expfile
numpassed=`expr $numpassed + 1` ((numpassed=numpassed + 1))
else else
echo "FAIL $infile" echo "FAIL $infile"
numfailed=`expr $numfailed + 1` ((numfailed=numfailed + 1))
namefailed="$namefailed $basename" namefailed="$namefailed $basename"
fi fi
numtests=`expr $numtests + 1` ((numtests=numtests + 1))
done done
echo "$numtests tests performed" echo "$numtests tests performed"
echo "$numpassed tests passed" echo "$numpassed tests passed"
if [ $numfailed -ne 0 ] if [[ $numfailed != 0 ]]
then then
echo "$numfailed tests failed -$namefailed" echo "$numfailed tests failed -$namefailed"
fi fi