mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-10 12:49:08 -04:00
Runs all tests and sumarizes the result
This commit is contained in:
parent
289b1a1396
commit
61ddf68d75
23
tests/runtests.sh
Normal file
23
tests/runtests.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
let "suc = 0"
|
||||
let "fail = 0"
|
||||
|
||||
for tnam in `ls test??.sh`
|
||||
do
|
||||
echo "Running test $tnam"
|
||||
if ./$tnam && echo "OK" || echo "FAIL" ; then
|
||||
let "suc = $(($suc + 1))"
|
||||
else
|
||||
let "fail = $(($fail + 1))"
|
||||
fi
|
||||
done
|
||||
|
||||
let "total = $(($suc + $fail))"
|
||||
echo "======================"
|
||||
echo "| TESTS DONE |"
|
||||
echo "======================"
|
||||
echo " TOTAL: $total"
|
||||
echo " OK: $suc"
|
||||
echo "FAILED: $fail"
|
||||
|
Loading…
x
Reference in New Issue
Block a user