summaryrefslogtreecommitdiffstats
path: root/tests/run-clients.sh
blob: be9602756cb4ee6487c88cd045acf1eeb8614d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

if [ ! -f TEST ]
then
	echo "create the TEST first, e.g. dd if=/dev/urandom of=TEST bs=750M count=1 iflag=fullblock"
	exit 0
fi

if [ $UID -ne 0 ]
then
	echo "You must be root to run this test script"
	exit 0
fi

ip netns exec c1 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c2 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c3 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c4 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c5 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c6 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c7 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c8 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c9 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c10 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c11 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c12 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c13 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c14 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c15 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c16 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c17 wget http://10.141.10.1:9999/TEST -O /dev/null &
ip netns exec c18 wget http://10.141.10.1:9999/TEST -O /dev/null &