]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
tests: stress-test delete after add
authorJozsef Kadlecsik <kadlec@netfilter.org>
Mon, 13 Jul 2026 13:14:08 +0000 (15:14 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Mon, 13 Jul 2026 13:16:32 +0000 (15:16 +0200)
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
tests/hash:net.t

index c74ace1e99e3d12b1dfc0d209605544d1b524f88..4d96350f6dbc263f4132e9d525fe9562f1e34e45 100644 (file)
 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