aboutsummaryrefslogtreecommitdiff
path: root/src/testing/netjail_stop.sh
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-08-17 14:21:53 +0200
committert3sserakt <t3ss@posteo.de>2021-08-17 14:21:53 +0200
commit1e063cd73452396778cf00127346b9b08a922317 (patch)
treedc0c119ecf8511c5c56a469e580fee09800fc45a /src/testing/netjail_stop.sh
parent0f00c002810907f4edf740203bdf24d81124fd32 (diff)
downloadgnunet-1e063cd73452396778cf00127346b9b08a922317.tar.gz
gnunet-1e063cd73452396778cf00127346b9b08a922317.zip
- renamed methods and variables to prepare moving files from testbed to testing, to fix circular dependency problem
Diffstat (limited to 'src/testing/netjail_stop.sh')
-rwxr-xr-xsrc/testing/netjail_stop.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/testing/netjail_stop.sh b/src/testing/netjail_stop.sh
new file mode 100755
index 000000000..689bf7ae9
--- /dev/null
+++ b/src/testing/netjail_stop.sh
@@ -0,0 +1,26 @@
1#!/bin/sh
2. "./../testbed/netjail_core.sh"
3
4set -eu
5set -x
6
7export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
8
9LOCAL_M=$1
10GLOBAL_N=$2
11NETWORK_NET=$(netjail_print_name "n" $GLOBAL_N $LOCAL_M)
12
13shift 2
14
15for N in $(seq $GLOBAL_N); do
16 for M in $(seq $LOCAL_M); do
17 netjail_node_clear $(netjail_print_name "N" $N $M)
18 done
19
20 netjail_bridge_clear $(netjail_print_name "r" $N)
21 netjail_node_clear $(netjail_print_name "R" $N)
22done
23
24netjail_bridge_clear $NETWORK_NET
25
26echo "Done"