]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: skip reset tests if kernel lacks support
authorFlorian Westphal <fw@strlen.de>
Mon, 18 Sep 2023 10:28:26 +0000 (12:28 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 18 Sep 2023 11:08:57 +0000 (13:08 +0200)
commit5f83041242ca0ff38a74d51b85e00047568c4933
tree15c625ba17b2a5c6281c35c9468ef9f2edf514fa
parent45060a09bc3ad1c4bcfd4ad91863e00ab58efb5b
tests/shell: skip reset tests if kernel lacks support

reset is implemented via flush + extra attribute, so older kernels
perform a flush.  This means .nft doesn't work, we need to check
if the individual set contents/sets are still in place post-reset.

Make this generic and permit use of feat.sh in addition to the simpler
foo.nft feature files.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Thomas Haller <thaller@redhat.com>
tests/shell/features/reset_rule.sh [new file with mode: 0755]
tests/shell/features/reset_set.sh [new file with mode: 0755]
tests/shell/run-tests.sh
tests/shell/testcases/rule_management/0011reset_0
tests/shell/testcases/sets/reset_command_0