18 |
|
|
19 |
set -e |
set -e |
20 |
|
|
21 |
|
. common.sh |
22 |
|
|
23 |
shutdown() { |
shutdown() { |
24 |
wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null |
wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null |
25 |
wait $server_pid |
wait $server_pid |
56 |
# server sending malformed body |
# server sending malformed body |
57 |
cat store.json | sed "s/@PREFIX@/http:\\/\\/127.0.0.1:8000\\//g" > TMP |
cat store.json | sed "s/@PREFIX@/http:\\/\\/127.0.0.1:8000\\//g" > TMP |
58 |
wget --post-file=TMP -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/jscoverage-store > /dev/null |
wget --post-file=TMP -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/jscoverage-store > /dev/null |
59 |
js json-cmp.js store-source-urls.expected.json DIR/jscoverage.json |
json_cmp store-source-urls.expected.json DIR/jscoverage.json |
60 |
sort ERR -o ERR |
sort ERR -o ERR |
61 |
diff --strip-trailing-cr store-source-urls.expected.err ERR |
diff --strip-trailing-cr store-source-urls.expected.err ERR |