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

Diff of /trunk/tests/proxy-no-server.sh

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

revision 609 by siliconforks, Mon May 24 03:53:52 2010 UTC revision 610 by siliconforks, Fri Sep 24 20:35:36 2010 UTC
# Line 31  Line 31 
31    
32  . ./common.sh  . ./common.sh
33    
34  $VALGRIND jscoverage-server --proxy > OUT 2> ERR &  proxy_server_port=`perl unused-port.pl`
35    $VALGRIND jscoverage-server --port=$proxy_server_port --proxy > OUT 2> ERR &
36  proxy_server_pid=$!  proxy_server_pid=$!
 proxy_server_port=8080  
37    
38  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${proxy_server_port}/jscoverage.html
39    
40  unused_port=`perl unused-port.pl`  unused_port=`perl unused-port.pl`
41  echo 504 > EXPECTED  echo 504 > EXPECTED
42  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:$unused_port/index.html 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:${proxy_server_port} http://127.0.0.1:$unused_port/index.html 2> /dev/null > ACTUAL
43  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL

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

  ViewVC Help
Powered by ViewVC 1.1.24