]> git.ipfire.org Git - thirdparty/ipset.git/blame - tests/netnetgen.sh
xlate: Fix for fd leak in error path
[thirdparty/ipset.git] / tests / netnetgen.sh
CommitLineData
ab7c1721
OS
1#!/bin/sh
2
7e89be67
JK
3while [ -n "$1" ]; do
4 case "$1" in
5 comment)
6 comment=" comment"
7 ;;
8 timeout)
844961ef 9 timeout=" timeout 10"
7e89be67
JK
10 ;;
11 *)
12 ;;
13 esac
14 shift
15done
16
17echo "n test hash:net,net hashsize 32 maxelem 87040$comment$timeout"
ab7c1721
OS
18for x in `seq 0 255`; do
19 for y in `seq 0 3 253`; do
20 z=$((y+2))
7e89be67
JK
21 if [ -n "$comment" ]; then
22 c="$comment \"text 10.0.0.0-10.0.2.255,10.$x.$y.0-10.$x.$z.255\""
23 fi
24 echo "a test 10.0.0.0-10.0.2.255,10.$x.$y.0-10.$x.$z.255$c"
ab7c1721
OS
25 done
26done