summaryrefslogtreecommitdiff
path: root/tests/run-all-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-all-tests.sh')
-rwxr-xr-xtests/run-all-tests.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/run-all-tests.sh b/tests/run-all-tests.sh
new file mode 100755
index 0000000..8e68e8d
--- /dev/null
+++ b/tests/run-all-tests.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+
+error=0
+for i in *.test ; do
+ if bash $i ; then
+ echo "$i: passed" >&2
+ else
+ echo "$i: ERROR" >&2
+ error=1
+ fi
+done
+
+if test "$error" -eq 0; then
+ echo "all tests passed" >&2
+else
+ echo "one or more tests failed" >&2
+fi
+
+exit $error