test: Add a simple completion message and test cnt

* Simplify the review of the test log by looking for a magic line.
This commit is contained in:
Kyle Manna 2016-06-01 14:20:31 -07:00
parent 30adfd5632
commit e8eb47ef2b

View File

@ -3,13 +3,17 @@
set -x set -x
cd "$(dirname "$(readlink -f "$0")")/tests" cd "$(dirname "$(readlink -f "$0")")/tests"
let cnt=0
for i in *.sh; do for i in *.sh; do
echo -e "\n>> Running test $i\n" cnt=$(($cnt + 1))
echo -e "\n>> Running test #$cnt \"$i\"\n"
./${i} ./${i}
retval=$? retval=$?
if [ $retval != 0 ]; then if [ $retval != 0 ]; then
echo "Failed $i with exit code $retval" echo ">> FAILED test #$cnt \"$i\", exit code $retval"
exit $retval exit $retval
fi fi
done done
echo ">> All $cnt tests PASSED"