From: Phil Sutter Date: Wed, 5 Feb 2020 18:48:53 +0000 (+0100) Subject: tests: monitor: Support testing host's nft binary X-Git-Tag: v0.9.4~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15ede6857c8c578ec6211c8b68424183ba1baf1a;p=thirdparty%2Fnftables.git tests: monitor: Support testing host's nft binary Add support for -H/--host flag to use 'nft' tool from $PATH instead of the local one. Signed-off-by: Phil Sutter --- diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh index efacdaaa..ffb833a7 100755 --- a/tests/monitor/run-tests.sh +++ b/tests/monitor/run-tests.sh @@ -119,6 +119,10 @@ while [ -n "$1" ]; do test_json=true shift ;; + -H|--host) + nft=nft + shift + ;; testcases/*.t) testcases+=" $1" shift