selftests: netfilter: Extend nft_audit.sh
authorPhil Sutter <phil@nwl.cc>
Sat, 23 Sep 2023 01:53:49 +0000 (03:53 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 4 Oct 2023 12:12:01 +0000 (14:12 +0200)
commit203bb9d39866d3c5a8135433ce3742fe4f9d5741
tree4244fc82dda8019f9fd02001e3675a1ece697247
parentcf791b22bef7d9352ff730a8727d3871942d6001
selftests: netfilter: Extend nft_audit.sh

Add tests for sets and elements and deletion of all kinds. Also
reorder rule reset tests: By moving the bulk rule add command up, the
two 'reset rules' tests become identical.

While at it, fix for a failing bulk rule add test's error status getting
lost due to its use in a pipe. Avoid this by using a temporary file.

Headings in diff output for failing tests contain no useful data, strip
them.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/netfilter/nft_audit.sh