25 |
|
|
26 |
function cleanup() { |
function cleanup() { |
27 |
shutdown |
shutdown |
28 |
kill $origin_server_pid |
kill -9 $origin_server_pid |
29 |
} |
} |
30 |
|
|
31 |
trap 'cleanup' 0 1 2 3 15 |
trap 'cleanup' 0 1 2 3 15 |
63 |
|
|
64 |
echo 200 > EXPECTED |
echo 200 > EXPECTED |
65 |
! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:8000/overflow 2> /dev/null > ACTUAL |
! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:8000/overflow 2> /dev/null > ACTUAL |
66 |
diff EXPECTED ACTUAL |
diff --strip-trailing-cr EXPECTED ACTUAL |
67 |
|
|
68 |
echo 200 > EXPECTED |
echo 200 > EXPECTED |
69 |
! curl -f -w '%{http_code}\n' -o /dev/null -x 127.0.0.1:8080 http://127.0.0.1:8000/javascript 2> /dev/null > ACTUAL |
! curl -f -w '%{http_code}\n' -o /dev/null -x 127.0.0.1:8080 http://127.0.0.1:8000/javascript 2> /dev/null > ACTUAL |
70 |
diff EXPECTED ACTUAL |
diff --strip-trailing-cr EXPECTED ACTUAL |
71 |
|
|
72 |
echo 200 > EXPECTED |
echo 200 > EXPECTED |
73 |
! curl -f -w '%{http_code}\n' -o /dev/null -x 127.0.0.1:8080 http://127.0.0.1:8000/multiple 2> /dev/null > ACTUAL |
! curl -f -w '%{http_code}\n' -o /dev/null -x 127.0.0.1:8080 http://127.0.0.1:8000/multiple 2> /dev/null > ACTUAL |
74 |
diff EXPECTED ACTUAL |
diff --strip-trailing-cr EXPECTED ACTUAL |