summaryrefslogtreecommitdiff
path: root/extra/legacy/test/runTest
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 03:40:56 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 03:40:56 -0300
commit50d2db5c271537d78ea0037fe285d081df38fa02 (patch)
treebcb8911f516a5561b3ec37cb0a010e603a494586 /extra/legacy/test/runTest
parent8eafe04ec5eaf917d9e2d58993604c454f1a26d1 (diff)
add copy from the master repo
Diffstat (limited to 'extra/legacy/test/runTest')
-rwxr-xr-xextra/legacy/test/runTest15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/legacy/test/runTest b/extra/legacy/test/runTest
new file mode 100755
index 0000000..b8713d8
--- /dev/null
+++ b/extra/legacy/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