/[jscoverage]/trunk/tests/server-ip-address.sh
ViewVC logotype

Diff of /trunk/tests/server-ip-address.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 --verbose --ip-address=0.0.0.0 > OUT 2> ERR &  server_port=`perl unused-port.pl`
36    $VALGRIND jscoverage-server --port=$server_port --verbose --ip-address=0.0.0.0 > OUT 2> ERR &
37  server_pid=$!  server_pid=$!
 server_port=8080  
38    
39  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
40    
41  wget -q -O- http://127.0.0.1:${server_port}/ > /dev/null  wget -q -O- http://127.0.0.1:${server_port}/ > /dev/null
42    
43  shutdown  shutdown
44    
45  cat server-ip-address.expected.out | sed 's/@ADDRESS@/0.0.0.0/g' > EXPECTED  cat server-ip-address.expected.out | sed 's/@ADDRESS@/0.0.0.0/g' | sed "s/@PORT@/${server_port}/g" > EXPECTED
46  cat OUT | tr -d '\r' > ACTUAL  cat OUT | tr -d '\r' > ACTUAL
47  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL
48    
49  $VALGRIND jscoverage-server --verbose --ip-address 127.0.0.1 > OUT 2> ERR &  server_port=`perl unused-port.pl`
50    $VALGRIND jscoverage-server --port=$server_port --verbose --ip-address 127.0.0.1 > OUT 2> ERR &
51  server_pid=$!  server_pid=$!
 server_port=8080  
52    
53  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
54    
55  wget -q -O- http://127.0.0.1:${server_port}/ > /dev/null  wget -q -O- http://127.0.0.1:${server_port}/ > /dev/null
56    
57  shutdown  shutdown
58    
59  cat server-ip-address.expected.out | sed 's/@ADDRESS@/127.0.0.1/g' > EXPECTED  cat server-ip-address.expected.out | sed 's/@ADDRESS@/127.0.0.1/g' | sed "s/@PORT@/${server_port}/g" > EXPECTED
60  cat OUT | tr -d '\r' > ACTUAL  cat OUT | tr -d '\r' > ACTUAL
61  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