Created
June 27, 2018 14:20
-
-
Save tuxlinuxien/61ca30979e9179ce25a65b8c0db4d092 to your computer and use it in GitHub Desktop.
test3.sh
This file contains 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