#!/bin/bash

TS=`date +%s`

# AUTHN_BASIC TESTS
/usr/sbin/httpd.worker -f /srv/www/etc/httpd.conf -DONE_PROCESS -DNO_LOG -DAUTHN_BASIC &
sleep 2

ab -A presbrey:test -qn1000 https://localhost/Empty > httpd_basic_direct.$TS.log

stunnel stunnel-null.conf
ab -A presbrey:test -qn1000 http://localhost:8443/Empty > httpd_basic_stunnel-null.$TS.log
pkill -9 stunnel

pkill -9 httpd.worker; httpd-cleanup
