summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/dumps
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-08-17 12:12:23 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-08-17 13:03:49 +0200
commitf8b1bc9d95920d977ee2a24bbda3f97cb563b1bc (patch)
treec3e25b67dd27130dac039aeaeb5a4b550e38f9e2 /tests/shell/testcases/sets/dumps
parent0864c2d49ee8a1cc537568c05e14943186480125 (diff)
src: add comment support for map too
Extend and slightly rework tests/shell to cover this case too. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/sets/dumps')
-rw-r--r--tests/shell/testcases/sets/dumps/0054comments_set_0.nft6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/dumps/0054comments_set_0.nft b/tests/shell/testcases/sets/dumps/0054comments_set_0.nft
index 2ad84003..79299241 100644
--- a/tests/shell/testcases/sets/dumps/0054comments_set_0.nft
+++ b/tests/shell/testcases/sets/dumps/0054comments_set_0.nft
@@ -4,4 +4,10 @@ table ip t {
flags interval
comment "test"
}
+
+ map m {
+ type ipv4_addr : ipv4_addr
+ flags interval
+ comment "another test"
+ }
}