summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optionals/comments_chain_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/optionals/comments_chain_0')
-rwxr-xr-xtests/shell/testcases/optionals/comments_chain_012
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/shell/testcases/optionals/comments_chain_0 b/tests/shell/testcases/optionals/comments_chain_0
new file mode 100755
index 00000000..fba961c7
--- /dev/null
+++ b/tests/shell/testcases/optionals/comments_chain_0
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+EXPECTED='table ip test_table {
+ chain test_chain {
+ comment "test"
+ }
+}
+'
+
+set -e
+
+$NFT -f - <<< "$EXPECTED"