]> git.ipfire.org Git - thirdparty/ipset.git/commit
tests: Reduce testsuite run-time
authorPhil Sutter <phil@nwl.cc>
Thu, 27 Jun 2024 08:18:18 +0000 (10:18 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Thu, 27 Jun 2024 13:55:26 +0000 (15:55 +0200)
commit5c9ef9016d2781f6e07a544e34ec9f4a8d65d0e2
tree26cd35ec02e6ed456a27a92510fe666400d43349
parent851cb04ffee5040f1e0063f77c3fe9bc6245e0fb
tests: Reduce testsuite run-time

Where acceptable, batch add set element calls to avoid overhead of
excessive 'ipset' program spawns. On my (slow) testing VM, this patch
reduces a full run of tests/runtest.sh from ~70min down to ~11min.

This might eliminate the situation being tested: resize.sh might be such
a case so batch only 255 'ipset add' calls and continue to repeat these
batched calls 32 times in hopes that it still qualifies as the resizing
stress test tests/hash:ip.t calls it.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
tests/resize.sh
tests/resizec.sh
tests/resizen.sh
tests/resizet.sh
tests/setlist_resize.sh