diff options
| author | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-02 17:46:48 +0000 |
|---|---|---|
| committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-02 17:46:48 +0000 |
| commit | 41c5abebb2a3c77eb0494d7a436cb1bea2f7a6c2 (patch) | |
| tree | 95d410a66e651a286811db58d4b4cc7c6fd9982e /tests/run-all-tests.sh | |
| parent | f23e4b0ce677a08665ec7f3e662569e12326913b (diff) | |
More tests!
Diffstat (limited to 'tests/run-all-tests.sh')
| -rwxr-xr-x | tests/run-all-tests.sh | 20 |
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 |
