mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-04 02:06:29 -04:00
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. Conflicts: tests/runtests.sh
This commit is contained in:
parent
c6fedbbe9d
commit
d4a36f2ba5
@ -1,29 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
let "suc = 0"
|
||||
let "fail = 0"
|
||||
NUMTEST=79
|
||||
# Always run in script-dir
|
||||
DIR=`dirname $0`
|
||||
cd $DIR
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user