Extend run-tests.sh a bit so that all remaining arguments after option parsing are treated as filenames to test and complain if one doesn't seem like such. This allows for doing stuff like: | ./run-tests.sh testcases/include/000* Signed-off-by: Phil Sutter <phil@xxxxxx> --- tests/shell/run-tests.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index 431d55590a7df..b52611b4eb695 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -55,12 +55,14 @@ if [ "$1" == "-g" ] ; then shift fi -if [ -x "$1" ] ; then - if grep ^.*${RETURNCODE_SEPARATOR}[0-9]\\+$ <<< $1 >/dev/null ; then - SINGLE=$1 +for arg in "$@"; do + if grep ^.*${RETURNCODE_SEPARATOR}[0-9]\\+$ <<< $arg >/dev/null ; then + SINGLE+=" $arg" VERBOSE=y + else + msg_error "unknown parameter '$arg'" fi -fi +done kernel_cleanup() { $NFT flush ruleset -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html