summaryrefslogtreecommitdiff
path: root/tests/run-all-tests.sh
blob: ed8cf38d5730bc84a933c19972073de81d1185e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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