]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: check diff in "maps/typeof_maps_0" and "sets/typeof_sets_0" test
authorThomas Haller <thaller@redhat.com>
Mon, 18 Sep 2023 10:28:28 +0000 (12:28 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 18 Sep 2023 11:09:03 +0000 (13:09 +0200)
commit78fa7db4885496fd906ccbfbe0a6a3deed81c8a8
tree1071d3d16d640244609cabab9107882ca2b4b7b1
parentf30cb622d27e4b14454bccb4b9c0c990a68888df
tests/shell: check diff in "maps/typeof_maps_0" and "sets/typeof_sets_0" test

These tests run different variants based on NFT_TEST_HAVE_osf support.
Consequently, we cannot check the pre-generated diff.

Instead, construct what we expect dynamically in the script, and compare
the ruleset against that.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/maps/typeof_maps_0
tests/shell/testcases/sets/typeof_sets_0