20 lines
387 B
Plaintext
Executable File
20 lines
387 B
Plaintext
Executable File
rm -f test.* *.out *.ioclog StreamDebug.log
|
|
for i in test*
|
|
do
|
|
if [ $i != testall -a -x $i ]
|
|
then
|
|
echo $i "$@"
|
|
if ! $i "$@"
|
|
then
|
|
echo -e "\033[31;7mFailed.\033[0m"
|
|
(( fail+=1 ))
|
|
fi
|
|
fi
|
|
done
|
|
|
|
if [ "$fail" ]
|
|
then echo -e "\033[31;7m$fail tests failed\033[0m"
|
|
else echo -e "\033[32;7mAll tests passed.\033[0m"
|
|
fi
|
|
exit $fail
|