netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft v2 0/3] add "eval-exit-code" and skip tests based on kernel version
@ 2023-10-17  8:49 Thomas Haller
  2023-10-17  8:49 ` [PATCH nft v2 1/3] tests/shell: add "tests/shell/helpers/eval-exit-code" Thomas Haller
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Thomas Haller @ 2023-10-17  8:49 UTC (permalink / raw)
  To: NetFilter; +Cc: Thomas Haller

This is a follow-up and replaces the two patches:

  [PATCH nft 1/3] tests/shell: skip "table_onoff" test if kernel patch is missing
  [PATCH nft 2/3] tests/shell: skip "vlan_8021ad_tag" test instead of failing

Instead, add a helper script "eval-exit-code" which makes it easy(?) to
conditionally downgrade a test failure to a SKIP (exit 77) based on the
kernel version.

Thomas Haller (3):
  tests/shell: add "tests/shell/helpers/eval-exit-code"
  tests/shell: skip "table_onoff" test on older kernels
  tests/shell: skip "vlan_8021ad_tag" test on older kernels

 tests/shell/helpers/eval-exit-code            | 116 ++++++++++++++++++
 .../testcases/packetpath/vlan_8021ad_tag      |   8 +-
 .../shell/testcases/transactions/table_onoff  |   4 +-
 3 files changed, 126 insertions(+), 2 deletions(-)
 create mode 100755 tests/shell/helpers/eval-exit-code

-- 
2.41.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-10-17 20:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-17  8:49 [PATCH nft v2 0/3] add "eval-exit-code" and skip tests based on kernel version Thomas Haller
2023-10-17  8:49 ` [PATCH nft v2 1/3] tests/shell: add "tests/shell/helpers/eval-exit-code" Thomas Haller
2023-10-17  8:49 ` [PATCH nft v2 2/3] tests/shell: skip "table_onoff" test on older kernels Thomas Haller
2023-10-17  9:04   ` Pablo Neira Ayuso
2023-10-17 11:21     ` Thomas Haller
2023-10-17 11:40       ` Pablo Neira Ayuso
2023-10-17 12:43         ` Thomas Haller
2023-10-17 13:58           ` Pablo Neira Ayuso
2023-10-17  8:49 ` [PATCH nft v2 3/3] tests/shell: skip "vlan_8021ad_tag" " Thomas Haller
2023-10-17  9:24 ` [PATCH nft v2 0/3] add "eval-exit-code" and skip tests based on kernel version Florian Westphal
2023-10-17 20:41 ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).