Allow passing script names into unit test runner. (Default: all *.test files.)
authorDariusz Murakowski <murakdar@mit.edu>
Fri, 1 May 2015 22:38:20 +0000 (18:38 -0400)
committerDariusz Murakowski <murakdar@mit.edu>
Fri, 1 May 2015 22:38:20 +0000 (18:38 -0400)
test/runTests.sh

index b7676ed..6d266b0 100755 (executable)
@@ -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"