]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: add feature probe for sets with more than one element
authorFlorian Westphal <fw@strlen.de>
Wed, 20 Sep 2023 23:05:26 +0000 (01:05 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 21 Sep 2023 13:41:52 +0000 (15:41 +0200)
commitb6bfbc2ecf0b7fd9192479e3873632d65fc4fea1
treef97029f99cbaa09a41b4f66589a11989f8b82ca7
parent424b1c3a0487e3cea19ec40439ab16816ced8370
tests: shell: add feature probe for sets with more than one element

Kernels < 5.11 can handle only one expression per element, e.g.
its possible to attach a counter per key, or a rate limiter,
or a quota, but not two at the same time.

Add a probe file and skip the relevant tests if the feature is absent.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/features/set_with_two_expressions.nft [new file with mode: 0644]
tests/shell/testcases/nft-f/0025empty_dynset_0
tests/shell/testcases/sets/0059set_update_multistmt_0
tests/shell/testcases/sets/0060set_multistmt_0
tests/shell/testcases/sets/0060set_multistmt_1