/[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 609 by siliconforks, Mon May 24 03:37:58 2010 UTC revision 610 by siliconforks, Fri Sep 24 20:35:36 2010 UTC
# Line 35  Line 35 
35    
36  . ./common.sh  . ./common.sh
37    
38  $VALGRIND jscoverage-server --proxy > OUT 2> ERR &  proxy_server_port=`perl unused-port.pl`
39    $VALGRIND jscoverage-server --port=$proxy_server_port --proxy > OUT 2> ERR &
40  proxy_server_pid=$!  proxy_server_pid=$!
 proxy_server_port=8080  
41    
42  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${proxy_server_port}/jscoverage.html
43    
44  ./http-client-bad-url 8080 http://127.0.0.1:123456/index.html  ./http-client-bad-url ${proxy_server_port} http://127.0.0.1:123456/index.html
45  ./http-client-bad-url 8080 http://127.0.0.1:xyz/index.html  ./http-client-bad-url ${proxy_server_port} http://127.0.0.1:xyz/index.html
46    
47  cd recursive  cd recursive
48  perl ../server.pl > /dev/null 2> /dev/null &  origin_server_port=`perl ../unused-port.pl`
49    perl ../server.pl $origin_server_port > /dev/null 2> /dev/null &
50  origin_server_pid=$!  origin_server_pid=$!
51  cd ..  cd ..
52    
53  wait_for_server http://127.0.0.1:8000/index.html  wait_for_server http://127.0.0.1:${origin_server_port}/index.html
54    
55  ./http-client-bad-url 8080 http://127.0.0.1:8000  ./http-client-bad-url ${proxy_server_port} http://127.0.0.1:${origin_server_port}
56  ./http-client-bad-url 8080 'http://127.0.0.1:8000?foo'  ./http-client-bad-url ${proxy_server_port} "http://127.0.0.1:${origin_server_port}?foo"
57  ./http-client-bad-url 8080 'foo'  ./http-client-bad-url ${proxy_server_port} 'foo'

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

  ViewVC Help
Powered by ViewVC 1.1.24