Ticket #1579: run-tests.sh

File run-tests.sh, 420 bytes (added by predatory.kangaroo@…, 8 years ago)

Test runner

Line 
1#!/bin/bash
2
3for i in / /direct/ /redirect /error /auth /additions /mirror; do
4 echo "Testing $i"
5 # Reload nginx to make sure there are no surviving keepalive connections
6 nginx -s reload
7 # Reset our keepalive counter
8 curl -s localhost:8080/reset
9 # Let the reload happen
10 sleep 5
11 # Run the test
12 ab -k -n 10000 -c 50 http://localhost:81$i &> /dev/null
13 # And grab the results
14 curl -s localhost:8080/get
15 echo
16done