/[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 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  $VALGRIND jscoverage-server --proxy > OUT 2> ERR &  proxy_server_port=`perl unused-port.pl`
36    $VALGRIND jscoverage-server --port=$proxy_server_port --proxy > OUT 2> ERR &
37  proxy_server_pid=$!  proxy_server_pid=$!
 proxy_server_port=8080  
38    
39  ./http-server-chunked &  origin_server_port=`perl unused-port.pl`
40    ./http-server-chunked $origin_server_port &
41  origin_server_pid=$!  origin_server_pid=$!
42    
43  wait_for_server http://127.0.0.1:8000/lower  wait_for_server http://127.0.0.1:${origin_server_port}/lower
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 'abcdefghijklmnopqrstuvwxyz' > EXPECTED  echo 'abcdefghijklmnopqrstuvwxyz' > EXPECTED
47  curl -s -x 127.0.0.1:8080 http://127.0.0.1:8000/lower > ACTUAL  curl -s -x 127.0.0.1:${proxy_server_port} http://127.0.0.1:${origin_server_port}/lower > ACTUAL
48  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL
49    
50  echo 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' > EXPECTED  echo 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' > EXPECTED
51  curl -s -x 127.0.0.1:8080 http://127.0.0.1:8000/upper > ACTUAL  curl -s -x 127.0.0.1:${proxy_server_port} http://127.0.0.1:${origin_server_port}/upper > ACTUAL
52  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL
53    
54  # curl doesn't understand trailers ???  # curl doesn't understand trailers ???
55  # echo 'hello world' > EXPECTED  # echo 'hello world' > EXPECTED
56  # curl -s -x 127.0.0.1:8080 http://127.0.0.1:8000/trailer > ACTUAL  # curl -s -x 127.0.0.1:${proxy_server_port} http://127.0.0.1:${origin_server_port}/trailer > ACTUAL
57  # diff EXPECTED ACTUAL  # diff EXPECTED ACTUAL
58    
59  echo 200 > EXPECTED  echo 200 > EXPECTED
60  ! 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:${proxy_server_port} http://127.0.0.1:${origin_server_port}/overflow 2> /dev/null > ACTUAL
61  diff --strip-trailing-cr EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
62    
63  echo 200 > EXPECTED  echo 200 > EXPECTED
64  ! 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:${proxy_server_port} http://127.0.0.1:${origin_server_port}/javascript 2> /dev/null > ACTUAL
65  diff --strip-trailing-cr EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
66    
67  echo 200 > EXPECTED  echo 200 > EXPECTED
68  ! 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:${proxy_server_port} http://127.0.0.1:${origin_server_port}/multiple 2> /dev/null > ACTUAL
69  diff --strip-trailing-cr EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL

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

  ViewVC Help
Powered by ViewVC 1.1.24