selftests: netfilter: nft_concat_range.sh: reduce debug kernel run time
authorFlorian Westphal <fw@strlen.de>
Tue, 30 Apr 2024 14:58:07 +0000 (16:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 May 2024 21:56:19 +0000 (14:56 -0700)
commit496bc5861c73f34e0486612f93634a9289de0dfb
treebdd3e453995f191f13ba27afd1c13150790d643f
parentfff6e6accdb71e5dd36e50478bd82d5409ac32d2
selftests: netfilter: nft_concat_range.sh: reduce debug kernel run time

Even a 1h timeout isn't enough for nft_concat_range.sh to complete on
debug kernels.

Reduce test complexity and only match on single entry if
KSFT_MACHINE_SLOW is set.

To spot 'slow' tests, print the subtest duration (in seconds) in
addition to the status.

Add new nft_concat_range_perf.sh script, not executed via kselftest,
to run the performance (pps match rate) tests.

Those need about 25m to complete which seems too much to run this
via 'make run_tests'.

Signed-off-by: Florian Westphal <fw@strlen.de>
Link: https://lore.kernel.org/r/20240430145810.23447-1-fw@strlen.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/netfilter/Makefile
tools/testing/selftests/net/netfilter/config
tools/testing/selftests/net/netfilter/nft_concat_range.sh
tools/testing/selftests/net/netfilter/nft_concat_range_perf.sh [new file with mode: 0755]