|
@@ -16,7 +16,6 @@ bigfile_name=bigfile
|
|
bigfile_size=10M # size of file we want to use for the test
|
|
bigfile_size=10M # size of file we want to use for the test
|
|
tx_md5sumfile="$file_path"tx_"$bigfile_name"_md5sum"$tmp_ext"
|
|
tx_md5sumfile="$file_path"tx_"$bigfile_name"_md5sum"$tmp_ext"
|
|
|
|
|
|
-
|
|
|
|
# --- Network Config ---
|
|
# --- Network Config ---
|
|
echo '*** ZeroTier Network Containers Test: ' "$test_name"
|
|
echo '*** ZeroTier Network Containers Test: ' "$test_name"
|
|
chown -R daemon /var/lib/zerotier-one
|
|
chown -R daemon /var/lib/zerotier-one
|
|
@@ -26,11 +25,13 @@ virtip4=""
|
|
while [ -z "$virtip4" ]; do
|
|
while [ -z "$virtip4" ]; do
|
|
sleep 0.2
|
|
sleep 0.2
|
|
virtip4=`/zerotier-cli listnetworks | grep -F $nwid | cut -d ' ' -f 9 | sed 's/,/\n/g' | grep -F '.' | cut -d / -f 1`
|
|
virtip4=`/zerotier-cli listnetworks | grep -F $nwid | cut -d ' ' -f 9 | sed 's/,/\n/g' | grep -F '.' | cut -d / -f 1`
|
|
|
|
+ dev=`/zerotier-cli listnetworks | grep -F "" | cut -d ' ' -f 8 | cut -d "_" -f 2 | sed "s/^<dev>//" | tr '\n' '\0'`
|
|
done
|
|
done
|
|
-echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
|
|
|
|
|
+echo '--- Up and running at' $virtip4 ' on network: ' $nwid
|
|
echo '*** Writing address to ' "$address_file"
|
|
echo '*** Writing address to ' "$address_file"
|
|
echo $virtip4 > "$address_file"
|
|
echo $virtip4 > "$address_file"
|
|
|
|
|
|
|
|
+export ZT_NC_NWID=$dev
|
|
|
|
|
|
# --- Test section ---
|
|
# --- Test section ---
|
|
# Generate large random file for transfer test, share md5sum for monitor container to check
|
|
# Generate large random file for transfer test, share md5sum for monitor container to check
|