/[jscoverage]/trunk/tests/store-server-closes-immediately.sh
ViewVC logotype

Diff of /trunk/tests/store-server-closes-immediately.sh

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

revision 609 by siliconforks, Mon May 24 03:13:28 2010 UTC revision 610 by siliconforks, Fri Sep 24 20:35:36 2010 UTC
# Line 53  Line 53 
53  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
54    
55  rm -fr DIR  rm -fr DIR
56  $VALGRIND jscoverage-server --proxy --report-dir=DIR > OUT 2> ERR &  server_port=`perl unused-port.pl`
57    $VALGRIND jscoverage-server --port=$server_port --proxy --report-dir=DIR > OUT 2> ERR &
58  server_pid=$!  server_pid=$!
59  server_port=8080  origin_server_port=`perl unused-port.pl`
60  ./http-server-close-immediately &  ./http-server-close-immediately $origin_server_port &
61  origin_server_pid=$!  origin_server_pid=$!
62    
63  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
64  wait_for_server_that_closes_immediately http://127.0.0.1:8000/  wait_for_server_that_closes_immediately http://127.0.0.1:${origin_server_port}/
65    
66  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:${origin_server_port}\\//g" > TMP
67  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:${server_port}/" http://127.0.0.1:${origin_server_port}/jscoverage-store > /dev/null
68  json_cmp store-source-urls.expected.json DIR/jscoverage.json  cat store-source-urls.expected.json | sed "s/@PREFIX@/http:\\/\\/127.0.0.1:${origin_server_port}\\//g" > TMP
69    json_cmp TMP DIR/jscoverage.json
70  sort ERR -o ERR  sort ERR -o ERR
71  diff --strip-trailing-cr store-source-urls.expected.err ERR  cat store-source-urls.expected.err | sed "s/@PREFIX@/http:\\/\\/127.0.0.1:${origin_server_port}\\//g" > TMP
72    diff --strip-trailing-cr TMP ERR

Legend:
Removed from v.609  
changed lines
  Added in v.610

  ViewVC Help
Powered by ViewVC 1.1.24