Skip to content

Instantly share code, notes, and snippets.

@tuxlinuxien
Created June 27, 2018 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxlinuxien/61ca30979e9179ce25a65b8c0db4d092 to your computer and use it in GitHub Desktop.
Save tuxlinuxien/61ca30979e9179ce25a65b8c0db4d092 to your computer and use it in GitHub Desktop.
test3.sh
#!/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