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

Diff of /trunk/tests/server-directory-listing.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  rm -fr DIR  rm -fr DIR
34  mkdir DIR  mkdir DIR
35  $VALGRIND jscoverage-server --document-root=DIR &  server_port=`perl unused-port.pl`
36    $VALGRIND jscoverage-server --port=$server_port --document-root=DIR &
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  # make some funny files  # make some funny files
42  echo x > 'DIR/1&2.txt'  echo x > 'DIR/1&2.txt'
43  echo x > 'DIR/1 2.txt'  echo x > 'DIR/1 2.txt'
44    
45  sort server-directory-listing.expected -o EXPECTED  sort server-directory-listing.expected -o EXPECTED
46  wget -q -O- http://127.0.0.1:8080/ > ACTUAL  wget -q -O- http://127.0.0.1:${server_port}/ > ACTUAL
47  sort ACTUAL -o ACTUAL  sort ACTUAL -o ACTUAL
48  diff --strip-trailing-cr EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
49    

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

  ViewVC Help
Powered by ViewVC 1.1.24