From: Jozsef Kadlecsik Date: Mon, 13 Jul 2026 13:14:08 +0000 (+0200) Subject: tests: stress-test delete after add X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5acff7f6b26dca46b61a28016c3d53af0b25719f;p=thirdparty%2Fipset.git tests: stress-test delete after add Signed-off-by: Jozsef Kadlecsik --- diff --git a/tests/hash:net.t b/tests/hash:net.t index c74ace1..4d96350 100644 --- a/tests/hash:net.t +++ b/tests/hash:net.t @@ -56,10 +56,14 @@ 0 ./diff.sh .foo hash:net.t.list2 # Delete test set 0 ipset destroy test -# Stress test with range notation +# Stress test add with range notation 0 ./netgen.sh | ipset restore # List set and check the number of elements 0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 43520 +# Stress test del with range notation +0 ./netgen.sh | tail +2|sed 's/^a/d/' | ipset restore +# List set and check the number of elements +0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 0 # Destroy test set 0 ipset destroy test # Verify keeping track cidrs: create set