summaryrefslogtreecommitdiff
path: root/extra/coadde/test/runTest
diff options
context:
space:
mode:
Diffstat (limited to 'extra/coadde/test/runTest')
-rwxr-xr-xextra/coadde/test/runTest15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/coadde/test/runTest b/extra/coadde/test/runTest
new file mode 100755
index 0000000..b8713d8
--- /dev/null
+++ b/extra/coadde/test/runTest
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+. "$(dirname ${BASH_SOURCE[0]})/lib/common.inc"
+
+for t in "$(dirname ${BASH_SOURCE[0]})/test.d/"*.sh; do
+ l=$(basename ${t} .sh)
+ if [ -x ${t} ]; then
+ msg "Running test '${l}'"
+ ${t}
+ [ $? -ne 0 ] && die "Test '${l}' failed"
+ echo -e "\n\n\n"
+ else
+ warning "Skipping test ${l}"
+ fi
+done