/[jscoverage]/trunk/tests/proxy-empty-header-value.sh
ViewVC logotype

Diff of /trunk/tests/proxy-empty-header-value.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 32  Line 32 
32    
33  . ./common.sh  . ./common.sh
34    
35  ./http-server-empty-header-value &  origin_server_port=`perl unused-port.pl`
36    ./http-server-empty-header-value $origin_server_port &
37  origin_server_pid=$!  origin_server_pid=$!
38    
39  $VALGRIND jscoverage-server --proxy > OUT 2> ERR &  proxy_server_port=`perl unused-port.pl`
40    $VALGRIND jscoverage-server --port=$proxy_server_port --proxy > OUT 2> ERR &
41  proxy_server_pid=$!  proxy_server_pid=$!
 proxy_server_port=8080  
42    
43  wait_for_server http://127.0.0.1:8000/ping  wait_for_server http://127.0.0.1:{$origin_server_port}/ping
44  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:{$proxy_server_port}/jscoverage.html
45    
46  echo Hello > EXPECTED  echo Hello > EXPECTED
47  wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/index.html > ACTUAL  wget -q -O- -e "http_proxy=http://127.0.0.1:${proxy_server_port}/" http://127.0.0.1:${origin_server_port}/index.html > ACTUAL
48  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