/[jscoverage]/trunk/tests/store-server-bad-body.sh
ViewVC logotype

Diff of /trunk/tests/store-server-bad-body.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 114 by siliconforks, Sat May 31 21:39:39 2008 UTC revision 366 by siliconforks, Sun Oct 26 21:15:24 2008 UTC
# Line 18  Line 18 
18    
19  set -e  set -e
20    
21  function shutdown() {  . common.sh
22    
23    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
26  }  }
27    
28  function cleanup() {  cleanup() {
29    shutdown    shutdown
30    if [ "$origin_server_pid" != "" ]    if [ "$origin_server_pid" != "" ]
31    then    then
32      kill $origin_server_pid      kill -9 $origin_server_pid
33    fi    fi
34  }  }
35    
36  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
37    
 export PATH=.:..:../js:$PATH  
   
38  if [ -z "$VALGRIND" ]  if [ -z "$VALGRIND" ]
39  then  then
40    delay=0.2    delay=0.2
# Line 54  Line 54 
54  # server sending malformed body  # server sending malformed body
55  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
56  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
57  js json-cmp.js store-source-urls.expected.json DIR/jscoverage.json  json_cmp store-source-urls.expected.json DIR/jscoverage.json
58  sort ERR -o ERR  sort ERR -o ERR
59  diff store-source-urls.expected.err ERR  diff --strip-trailing-cr store-source-urls.expected.err ERR

Legend:
Removed from v.114  
changed lines
  Added in v.366

  ViewVC Help
Powered by ViewVC 1.1.24