From f48369d765248c29d555dfde29524992daa7f58a Mon Sep 17 00:00:00 2001 From: Daniel Aarno Date: Tue, 2 Jan 2018 17:16:06 +0100 Subject: [PATCH] Use make check to run tests (instead of custom logic). This way the list/number of tests only has to be updated in one place. --- tests/runtests.sh | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/tests/runtests.sh b/tests/runtests.sh index 9aafe4f..caec752 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -4,30 +4,4 @@ DIR=`dirname $0` cd $DIR -let "suc = 0" -let "fail = 0" -NUMTEST=89 - -for (( tno = 1 ; $tno <= $NUMTEST ; tno = $tno + 1 )); do - ./testCheck.sh $tno - if [ "$?" -eq "0" ]; then - echo "OK" - let "suc = $(($suc + 1))" - else - echo "FAIL" - let "fail = $(($fail + 1))" - fi -done - -let "total = $(($suc + $fail))" -echo "======================" -echo "| TESTS DONE |" -echo "======================" -echo " TOTAL: $total" -echo " OK: $suc" -echo "FAILED: $fail" - -if [ $fail -ne 0 ]; then - exit 1 -fi - +make check