/[jscoverage]/trunk/tests/proxy-url.sh
ViewVC logotype

Diff of /trunk/tests/proxy-url.sh

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

revision 505 by siliconforks, Sat Jan 2 04:55:54 2010 UTC revision 570 by siliconforks, Mon May 24 03:13:28 2010 UTC
# Line 33  Line 33 
33    
34  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
35    
36  export PATH=.:..:$PATH  . ./common.sh
   
 if [ -z "$VALGRIND" ]  
 then  
   delay=0.2  
 else  
   delay=2  
 fi  
37    
38  $VALGRIND jscoverage-server --proxy > OUT 2> ERR &  $VALGRIND jscoverage-server --proxy > OUT 2> ERR &
39  proxy_server_pid=$!  proxy_server_pid=$!
40  proxy_server_port=8080  proxy_server_port=8080
41    
42  sleep $delay  wait_for_server http://127.0.0.1:8080/jscoverage.html
43    
44  echo 504 > EXPECTED  echo 504 > EXPECTED
45  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:/index.html 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:/index.html 2> /dev/null > ACTUAL
# Line 60  Line 53 
53  origin_server_pid=$!  origin_server_pid=$!
54  cd ..  cd ..
55    
56  sleep $delay  wait_for_server http://127.0.0.1:8000/index.html
57    
58  ./http-client-bad-url 8080 http://127.0.0.1:8000  ./http-client-bad-url 8080 http://127.0.0.1:8000
59  ./http-client-bad-url 8080 'http://127.0.0.1:8000?foo'  ./http-client-bad-url 8080 'http://127.0.0.1:8000?foo'

Legend:
Removed from v.505  
changed lines
  Added in v.570

  ViewVC Help
Powered by ViewVC 1.1.24