Commit 926d2b62 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Count individual testcases when running tests.

The idea is simple: each print represents a testcase within a test unit.
As we don't have strict rules on which/how many testcase are put into
a test file, it's nice to have an idea how many *testcases* we have
totally. Would be nice to count how many testcases pass/fail, but
that's a bit less trivial.
parent d944a66e
......@@ -5,6 +5,7 @@ CPYTHON3=python3.3
MP_PY=../../unix/py
numtests=0
numtestcases=0
numpassed=0
numfailed=0
namefailed=
......@@ -17,6 +18,7 @@ do
$CPYTHON3 -B $infile > $expfile
$MP_PY $infile > $outfile
((numtestcases = numtestcases + $(cat $expfile | wc -l)))
diff --brief $expfile $outfile > /dev/null
......@@ -35,7 +37,7 @@ do
((numtests=numtests + 1))
done
echo "$numtests tests performed"
echo "$numtests tests performed ($numtestcases individual testcases)"
echo "$numpassed tests passed"
if [[ $numfailed != 0 ]]
then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment