diff options
Diffstat (limited to 'test/runTest')
-rwxr-xr-x | test/runTest | 8 |
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}'" |