/[jscoverage]/trunk/tests/server-shutdown-bad-method.sh
ViewVC logotype

Diff of /trunk/tests/server-shutdown-bad-method.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 610 by siliconforks, Fri Sep 24 20:35:36 2010 UTC
# Line 29  Line 29 
29    
30  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
31    
32  export PATH=.:..:$PATH  . ./common.sh
33    
34  if [ -z "$VALGRIND" ]  server_port=`perl unused-port.pl`
35  then  $VALGRIND jscoverage-server --port=$server_port > OUT 2> ERR &
   delay=0.2  
 else  
   delay=2  
 fi  
   
 $VALGRIND jscoverage-server > OUT 2> ERR &  
36  server_pid=$!  server_pid=$!
 server_port=8080  
37    
38  sleep $delay  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
39    
40  echo 405 > EXPECTED  echo 405 > EXPECTED
41  ! curl -f -w '%{http_code}\n' http://127.0.0.1:8080/jscoverage-shutdown 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' http://127.0.0.1:${server_port}/jscoverage-shutdown 2> /dev/null > ACTUAL
42  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL

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

  ViewVC Help
Powered by ViewVC 1.1.24