From: Dariusz Murakowski Date: Fri, 1 May 2015 22:38:20 +0000 (-0400) Subject: Allow passing script names into unit test runner. (Default: all *.test files.) X-Git-Url: http://src.murakowski.org/?a=commitdiff_plain;h=ac29eff0b78813e170e1ac65bfaa01dab6755fed;p=VirEvoDyn.git Allow passing script names into unit test runner. (Default: all *.test files.) --- diff --git a/test/runTests.sh b/test/runTests.sh index b7676ed..6d266b0 100755 --- a/test/runTests.sh +++ b/test/runTests.sh @@ -39,7 +39,10 @@ checkTest () { return $retval } -for t in *.test; do +# test all *.test files by default, or use input file names +FILES=${@-*.test} + +for t in $FILES; do if [ -x "$t" ]; then if checkTest $t; then echo "SUCCESS: $t"