summaryrefslogtreecommitdiff
path: root/runalltests
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2018-12-02 15:35:44 +0100
committerSilvan Jegen <s.jegen@gmail.com>2018-12-02 15:36:33 +0100
commit2a6c94abcb38a48f98c1393742a65232edc3c07f (patch)
treee3be321f2777ca5efe6b263ec31d264f957f2442 /runalltests
Initial commit
Diffstat (limited to 'runalltests')
-rwxr-xr-xrunalltests12
1 files changed, 12 insertions, 0 deletions
diff --git a/runalltests b/runalltests
new file mode 100755
index 0000000..99270c8
--- /dev/null
+++ b/runalltests
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+for testfile in *.test; do
+ ./$testfile
+ ret=$(expr $ret + $?)
+done
+
+if [ $ret -gt 0 ]; then
+ printf "%d tests failed\n" $ret
+fi
+
+exit $ret