Created
June 27, 2018 14:20
test3.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rm -rf bigfile.bin | |
for i in {1..20}; do | |
echo "++ test $i download... ++" | |
rm -rf dowloaded_bigfile.bin | |
dd if=/dev/urandom of=./bigfile.bin bs=1048570 count=100 2> /dev/null >> /dev/null | |
curl -o dowloaded_bigfile.bin http://localhost:8000/bigfile.bin 2> /dev/null > /dev/null | |
md5sum bigfile.bin dowloaded_bigfile.bin | |
done; | |
echo "\n\n" | |
for i in {1..10}; do | |
echo "++ test $i head 200 OK... ++" | |
curl --head http://localhost:8000/bigfile.bin | |
done; | |
echo "\n\n" | |
for i in {1..10}; do | |
echo "++ test $i head 404 OK... ++" | |
curl --head http://localhost:8000/bigfile.bin_error | |
done; | |
echo "wget https://github.com/dansup/bulma-templates/archive/master.zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment