1 |
#!/bin/sh |
#!/bin/sh |
2 |
# proxy-bad-response-body.sh - test jscoverage-server --proxy with bad response body |
# proxy-bad-response-body.sh - test jscoverage-server --proxy with bad response body |
3 |
# Copyright (C) 2008 siliconforks.com |
# Copyright (C) 2008, 2009 siliconforks.com |
4 |
# |
# |
5 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
6 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
18 |
|
|
19 |
set -e |
set -e |
20 |
|
|
21 |
function shutdown() { |
shutdown() { |
22 |
wget -q -O- --post-data= "http://127.0.0.1:${proxy_server_port}/jscoverage-shutdown" > /dev/null |
wget -q -O- --post-data= "http://127.0.0.1:${proxy_server_port}/jscoverage-shutdown" > /dev/null |
23 |
wait $proxy_server_pid |
wait $proxy_server_pid |
24 |
kill -9 $origin_server_pid |
kill -9 $origin_server_pid |
25 |
} |
} |
26 |
|
|
27 |
function cleanup() { |
cleanup() { |
28 |
shutdown |
shutdown |
29 |
} |
} |
30 |
|
|