From c7fad18a7ed53c840620b1286dde5245b82fcd7a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 13 Mar 2017 13:22:03 +0100 Subject: tests: shell: test comments with small sets Just a test to cover the bitmap backend implementation. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/0020comments_0 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tests/shell/testcases/sets/0020comments_0 diff --git a/tests/shell/testcases/sets/0020comments_0 b/tests/shell/testcases/sets/0020comments_0 new file mode 100755 index 00000000..44d451a8 --- /dev/null +++ b/tests/shell/testcases/sets/0020comments_0 @@ -0,0 +1,12 @@ +#!/bin/bash + +# Test that comments are added to set elements in standard sets. +# Explicitly test bitmap backend set implementation. + +$NFT add table inet t +$NFT add set inet t s {type inet_service \; } +$NFT add element inet t s { 22 comment "test" } +if ! $NFT list ruleset | grep test >/dev/null ; then + echo "E: missing comment in set element" >&2 + exit 1 +fi -- cgit v1.2.3