summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optionals/handles_1
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/optionals/handles_1')
-rwxr-xr-xtests/shell/testcases/optionals/handles_18
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/shell/testcases/optionals/handles_1 b/tests/shell/testcases/optionals/handles_1
new file mode 100755
index 00000000..a3ae1a7f
--- /dev/null
+++ b/tests/shell/testcases/optionals/handles_1
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# handles are not shown if not asked for them
+
+$NFT add table test
+$NFT add chain test test
+$NFT add rule test test tcp dport 22 counter accept
+$NFT list table test | grep 'accept # handle '[[:digit:]]$ >/dev/null