summaryrefslogtreecommitdiffstats
path: root/test/runTest
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-10-06 00:03:16 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-27 15:46:05 +0200
commitaa4db02702313cf277b2c56b51ea9eb916de9468 (patch)
treeb25fdcca6e6fbd116e678c76cd9fd7c032e2d19d /test/runTest
parente4e9960d734c8cbe5630454701f0289e0ed68d07 (diff)
downloaddbscripts-aa4db02702313cf277b2c56b51ea9eb916de9468.tar.gz
dbscripts-aa4db02702313cf277b2c56b51ea9eb916de9468.tar.xz
make test.d/create-filelists.sh pass
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test/runTest')
-rwxr-xr-xtest/runTest8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/runTest b/test/runTest
index b8713d8..24c6c31 100755
--- a/test/runTest
+++ b/test/runTest
@@ -2,7 +2,13 @@
. "$(dirname ${BASH_SOURCE[0]})/lib/common.inc"
-for t in "$(dirname ${BASH_SOURCE[0]})/test.d/"*.sh; do
+if (($#>0)); then
+ tests=("$@")
+else
+ tests=("$(dirname ${BASH_SOURCE[0]})/test.d/"*.sh)
+fi
+
+for t in "${tests[@]}"; do
l=$(basename ${t} .sh)
if [ -x ${t} ]; then
msg "Running test '${l}'"