Pastebin
Paste #546: perform_test.sh
< previous paste - next paste>
Pasted by tdn
#!/usr/bin/zsh
BASE_URL="https://amigos18.diku.dk:3076"
CURL="/usr/bin/curl"
CERTDIR='user-cert/Morten_Meiling_Olsen-certs'
cert_file="$CERTDIR/cert.pem"
key_file="$CERTDIR/key.pem"
ca_cert_file="$CERTDIR/cacert.pem"
password="hest"
file="hello.html"
do_test() {
file=$1
echo "Fetching file: $file"
echo ""
echo "----------------------------------------------------------------------"
$CURL \
--silent \
--cert $cert_file \
--key $key_file \
--cacert $ca_cert_file \
--pass $password \
--url $BASE_URL/$file > /dev/null
echo "----------------------------------------------------------------------"
}
do_test "1k.bin"
do_test "2k.bin"
do_test "4k.bin"
do_test "8k.bin"
do_test "16k.bin"
do_test "32k.bin"
do_test "64k.bin"
do_test "128k.bin"
do_test "1M.bin"
do_test "10M.bin"
do_test "empty.html"
do_test "hello.html"
New Paste
Go to most recent paste.