summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-02-05 19:48:53 +0100
committerPhil Sutter <phil@nwl.cc>2020-02-07 13:28:02 +0100
commit15ede6857c8c578ec6211c8b68424183ba1baf1a (patch)
treedef6d0cda508a7ee0743a8cb9115908dff2afbb9 /tests
parent106b1f2b93f82784c18dd5e312bbf88e6c02a5b8 (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/monitor/run-tests.sh4
1 files changed, 4 insertions, 0 deletions
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