Files
httrack/tests/run-all-tests.sh
2013-06-02 17:53:36 +00:00

21 lines
263 B
Bash
Executable File

#!/bin/bash
#
error=0
for i in *.test ; do
if bash $i ; then
echo "$i: passed" >&2
else
echo "$i: ERROR" >&2
error=$[${error}+1]
fi
done
if test "$error" -eq 0; then
echo "all tests passed" >&2
else
echo "${error} test(s) failed" >&2
fi
exit $error