ZT_NC_NWID patch + (WIP) test script modifications

This commit is contained in:
Joseph Henry 2015-12-04 12:39:54 -08:00
commit d9b12be697
28 changed files with 1148 additions and 57 deletions

View file

@ -35,11 +35,12 @@ echo $virtip4 > "$address_file"
export ZT_NC_NWID=$dev
# --- Test section ---
nginx_html_path=/usr/share/nginx/html/
# Generate large random file for transfer test, share md5sum for monitor container to check
echo '*** Generating ' "$bigfile_size" ' file'
dd if=/dev/urandom of=/var/www/html/"$bigfile_name" bs="$bigfile_size" count=1
dd if=/dev/urandom of="$nginx_html_path$bigfile_name" bs="$bigfile_size" count=1
#md5sum /var/www/html/"$bigfile_name" >> "$tx_md5sumfile"
md5sum < /var/www/html/"$bigfile_name" >> "$tx_md5sumfile"
md5sum < "$nginx_html_path$bigfile_name" >> "$tx_md5sumfile"
echo '*** Wrote MD5 sum to ' "$tx_md5sumfile"
echo '*** Starting application...'