From: Eric Garver Date: Fri, 6 Sep 2019 00:33:02 +0000 (-0400) Subject: tests: shell: check that rule add with index works with echo X-Git-Tag: v0.9.3~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e2aae7d73ce733650d78da452d45d6c5498cc33;p=thirdparty%2Fnftables.git tests: shell: check that rule add with index works with echo Signed-off-by: Eric Garver Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/testcases/cache/0007_echo_cache_init_0 b/tests/shell/testcases/cache/0007_echo_cache_init_0 new file mode 100755 index 00000000..280a0d06 --- /dev/null +++ b/tests/shell/testcases/cache/0007_echo_cache_init_0 @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +$NFT -i >/dev/null </dev/null diff --git a/tests/shell/testcases/cache/dumps/0007_echo_cache_init_0.nft b/tests/shell/testcases/cache/dumps/0007_echo_cache_init_0.nft new file mode 100644 index 00000000..c774ee72 --- /dev/null +++ b/tests/shell/testcases/cache/dumps/0007_echo_cache_init_0.nft @@ -0,0 +1,7 @@ +table inet t { + chain c { + accept comment "first" + accept comment "second" + accept comment "third" + } +}