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@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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