[PATCH 0/3] nftables: add feature probes for sctp and multistmt set support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On some kernels tests can fail because a required feature is absent.
This can happen depending on kernel .config or because a required
feature was added in a later kernel release.

Patch 1 adds a missing check for catchall to the vmap timeout test so we
no longer try to add '*' keys.

Patch 2 adds a feature probe for multi-statement support in sets.
Add REQUIRES condition to all tests that do involve multistmt.
One of the test cases can be run partially, we only need to skip the
dump validation.

Patch 3 adds feature probing for sctp chunk matching in nft_exthdr
and the needed conditionals to the test.

Florian Westphal (3):
  tests: shell: skip adding catchall elements if unuspported
  tests: shell: add feature probe for sets with more than one element
  tests: shell: add feature probe for sctp chunk matching

 tests/shell/features/sctp_chunks.nft          |  7 +++++
 .../features/set_with_two_expressions.nft     |  9 +++++++
 tests/shell/testcases/maps/vmap_timeout       |  8 ++++--
 .../shell/testcases/nft-f/0025empty_dynset_0  |  8 ++++++
 .../testcases/sets/0059set_update_multistmt_0 |  2 ++
 .../shell/testcases/sets/0060set_multistmt_0  |  2 ++
 .../shell/testcases/sets/0060set_multistmt_1  |  2 ++
 tests/shell/testcases/sets/typeof_sets_0      | 26 ++++++++++++-------
 8 files changed, 52 insertions(+), 12 deletions(-)
 create mode 100644 tests/shell/features/sctp_chunks.nft
 create mode 100644 tests/shell/features/set_with_two_expressions.nft


[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux