33 lines
1.4 KiB
Bash
33 lines
1.4 KiB
Bash
#!/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 &
|