TCLAP/tests/runtests.sh
Daniel Aarno 5d4ffbf2db Make all types have ValueLike traits by default.
This allows new types to be added without any fuzz (no need to specify
the traits) if it has operator>>. It also removes the need to manually
specify the ArgTrait for all built in types (such as long, bool, char,
float etc).

ArgTraits now works in the following way:

1) If there exists a specialization of ArgTraits for type X, use it.

2) If no specialization exists but X has the typename
X::ValueCategory, use the specialization for X::ValueCategory.

3) If neither (1) nor (2) defines the trait, use the default which is
ValueLike.
2013-05-18 15:02:30 +02:00

30 lines
506 B
Bash
Executable File

#!/bin/bash
let "suc = 0"
let "fail = 0"
NUMTEST=83
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