summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/hash:ip.t4
-rwxr-xr-xtests/resize-and-list.sh11
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/hash:ip.t b/tests/hash:ip.t
index 2ad6831..a3ab1e2 100644
--- a/tests/hash:ip.t
+++ b/tests/hash:ip.t
@@ -58,6 +58,10 @@
0 ipset -W test resize-test
# IP: Check listing, which requires multiple messages
0 n=`ipset -S test | wc -l` && test $n -eq 8161
+# IP: Flush sets
+0 ipset -F
+# IP: Run resize and listing parallel
+0 ./resize-and-list.sh
# IP: Destroy sets
0 ipset -X
# IP: Create set to add a range
diff --git a/tests/resize-and-list.sh b/tests/resize-and-list.sh
new file mode 100755
index 0000000..209408a
--- /dev/null
+++ b/tests/resize-and-list.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+./resize.sh &
+n=0
+while [ $n -ne 8161 ]; do
+ echo $n
+ n=`ipset -S resize-test | wc -l`
+done
+ipset x
+
+ \ No newline at end of file