diff options
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-x | tests/run.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh new file mode 100755 index 0000000..baf6a48 --- /dev/null +++ b/tests/run.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd $(dirname $0); pwd) + +for testdir in ${SCRIPT_DIR}/*; do + if [[ ! -d ${testdir} ]]; then + continue + fi + + if [[ ! -x ${testdir}/run.sh ]]; then + continue + fi + + pushd ${testdir} + ./run.sh + rc=$? + popd + + if [[ ${rc} -ne 0 ]]; then + exit 1 + fi +done |