/[jscoverage]/trunk/tests/server-directory-redirect.sh
ViewVC logotype

Diff of /trunk/tests/server-directory-redirect.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 31  Line 31 
31    
32  . ./common.sh  . ./common.sh
33    
34  $VALGRIND jscoverage-server --document-root=recursive > OUT 2> ERR &  server_port=`perl unused-port.pl`
35    $VALGRIND jscoverage-server --port=$server_port --document-root=recursive > OUT 2> ERR &
36  server_pid=$!  server_pid=$!
 server_port=8080  
37    
38  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
39    
40  echo 'HTTP/1.1 301 Moved Permanently' > EXPECTED  echo 'HTTP/1.1 301 Moved Permanently' > EXPECTED
41  # curl -f doesn't seem to work with 3xx  # curl -f doesn't seem to work with 3xx
42  ! curl -D ACTUAL http://127.0.0.1:8080/1 2> /dev/null > /dev/null  ! curl -D ACTUAL http://127.0.0.1:${server_port}/1 2> /dev/null > /dev/null
43  cat ACTUAL | tr -d '\r' | head -1 | diff EXPECTED -  cat ACTUAL | tr -d '\r' | head -1 | diff EXPECTED -

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

  ViewVC Help
Powered by ViewVC 1.1.24