From 2610239d62d744294e55d44e46937bd6dea87559 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Tue, 17 Aug 2021 00:05:31 +0200 Subject: initial commit --- tests/run-clients.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tests/run-clients.sh (limited to 'tests/run-clients.sh') 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 & -- cgit v1.2.3-18-g5258