diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2021-08-17 00:05:31 +0200 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-29 15:47:43 +0200 |
commit | 2610239d62d744294e55d44e46937bd6dea87559 (patch) | |
tree | a14c9da8d4156e31cd311b036287e7aa9c90a40f /tests/run-clients.sh |
initial commit
Diffstat (limited to 'tests/run-clients.sh')
-rwxr-xr-x | tests/run-clients.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/run-clients.sh b/tests/run-clients.sh new file mode 100755 index 0000000..3857494 --- /dev/null +++ b/tests/run-clients.sh @@ -0,0 +1,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 & |