summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optionals/comments_0
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2015-12-23 14:19:22 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-12-25 13:16:37 +0100
commit76d672ca7c8518b92f67abb2393fbe228f2e2800 (patch)
tree13687e0ae85b62a8ef31729919e1507ad33efe8b /tests/shell/testcases/optionals/comments_0
parente5590a688fd1d46f1722afe6aec3b7c74fd6d883 (diff)
tests/shell: add tests for handles and comments
Here some tests for optional things like rule handles and comments. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/optionals/comments_0')
-rwxr-xr-xtests/shell/testcases/optionals/comments_08
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/shell/testcases/optionals/comments_0 b/tests/shell/testcases/optionals/comments_0
new file mode 100755
index 00000000..29b85062
--- /dev/null
+++ b/tests/shell/testcases/optionals/comments_0
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# comments are shown
+
+$NFT add table test
+$NFT add chain test test
+$NFT add rule test test tcp dport 22 counter accept comment test_comment
+$NFT list table test -a | grep 'accept comment \"test_comment\"' >/dev/null