From a7ded69b8dea118ae796d73b5a73c7113077d9dd Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Wed, 9 Nov 2016 10:38:26 +0100 Subject: tests: shell: add testcases for comments in set elements This patch adds a several testcases for comments in set elements. This includes the netfilter bug #1090 about comments in set interval elements. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/0009comments_timeout_0 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tests/shell/testcases/sets/0009comments_timeout_0 (limited to 'tests/shell/testcases/sets/0009comments_timeout_0') diff --git a/tests/shell/testcases/sets/0009comments_timeout_0 b/tests/shell/testcases/sets/0009comments_timeout_0 new file mode 100755 index 00000000..4e3f80c6 --- /dev/null +++ b/tests/shell/testcases/sets/0009comments_timeout_0 @@ -0,0 +1,12 @@ +#!/bin/bash + +# Test that comments are added to set elements in timemout sets. + +$NFT flush ruleset +$NFT add table t +$NFT add set t s {type ipv4_addr \; flags timeout \;} +$NFT add element t s { 1.1.1.1 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