summaryrefslogtreecommitdiffstats
path: root/tests/run-clients.sh
blob: 385749446769d326e5dd92bcfb1b9b9ba2fb043d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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 &