chiark / gitweb /
tests: run-all: allow arg(s) to override test list
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 19 Feb 2014 22:04:48 +0000 (22:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:07 +0000 (18:29 +0000)
tests/run-all

index 551e51f..e2e2a6f 100755 (executable)
@@ -1,7 +1,10 @@
 #!/bin/sh
 set -e
 # convenience script for running the tests outside adt-run
-for f in `run-parts --list tests/tests`; do
+if [ $# = 0 ]; then
+       set `run-parts --list tests/tests`
+fi
+for f in $@; do
        echo ==================================================
        echo $f
        $f