/[jscoverage]/trunk/tests/chunked.sh
ViewVC logotype

Diff of /trunk/tests/chunked.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 130 by siliconforks, Tue Jun 3 02:41:23 2008 UTC
# Line 18  Line 18 
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  }  }
25    
26  function cleanup() {  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
# Line 63  Line 63 
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

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

  ViewVC Help
Powered by ViewVC 1.1.24