/[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 505 by siliconforks, Sat Jan 2 04:55:54 2010 UTC revision 570 by siliconforks, Mon May 24 03:13:28 2010 UTC
# Line 30  Line 30 
30    
31  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
32    
33  export PATH=.:..:$PATH  . ./common.sh
   
 if [ -z "$VALGRIND" ]  
 then  
   delay=0.2  
 else  
   delay=2  
 fi  
34    
35  $VALGRIND jscoverage-server --verbose --ip-address=0.0.0.0 > OUT 2> ERR &  $VALGRIND jscoverage-server --verbose --ip-address=0.0.0.0 > OUT 2> ERR &
36  server_pid=$!  server_pid=$!
37  server_port=8080  server_port=8080
38    
39  sleep $delay  wait_for_server http://127.0.0.1:8080/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    
# Line 57  Line 50 
50  server_pid=$!  server_pid=$!
51  server_port=8080  server_port=8080
52    
53  sleep $delay  wait_for_server http://127.0.0.1:8080/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    

Legend:
Removed from v.505  
changed lines
  Added in v.570

  ViewVC Help
Powered by ViewVC 1.1.24