Skip to content

Some testsuite improvements

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests: xlate: Test built binary by defaulttests/xlate/ipset-translate tests/xlate/runtest.sh+3 -60 replies
2/4tests: xlate: Make test input validtests/xlate/runtest.sh tests/xlate/xlate.t tests/xlate/xlate.t.nft+15 -50 replies
3/4tests: cidr.sh: Add ipcalc fallbacktests/cidr.sh+28 -40 replies
4/4tests: hash:ip,port.t: 'vrrp' is printed as 'carp'tests/hash:ip,port.t.list2+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [ipset PATCH 0/4] Some testsuite improvements

Patch 1 fixes the reason why xlate testuite failed for me - it was simply not testing the right binary. Make it adhere to what the regular testsuite does by calling the built ipset tool instead of the installed one.

Patch 2 is just bonus, the idea for it came from a "does this even work" sanity check while debugging the above.

Patch 3 fixes for missing 'netmask' tool on my system. Not entirely satisfying though, there's no 'sendip', either (but the testsuite may run without).

Patch 4 avoids a spurious testsuite failure for me. Not sure if it's a good solution or will just move the spurious failure to others' systems.

Phil Sutter (4):
tests: xlate: Test built binary by default
tests: xlate: Make test input valid
tests: cidr.sh: Add ipcalc fallback
tests: hash:ip,port.t: 'vrrp' is printed as 'carp'

 tests/cidr.sh               | 32 ++++++++++++++++++++++++++++----
 tests/hash:ip,port.t.list2  |  2 +-
 tests/xlate/ipset-translate |  1 +
 tests/xlate/runtest.sh      | 14 ++++++++++----
 tests/xlate/xlate.t         |  6 +++---
 tests/xlate/xlate.t.nft     |  4 ++--
 6 files changed, 45 insertions(+), 14 deletions(-)
 create mode 120000 tests/xlate/ipset-translate
Signature · 1 line
2.38.0