/[jscoverage]/trunk/tests/store-spaces.sh
ViewVC logotype

Diff of /trunk/tests/store-spaces.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 35  Line 35 
35    
36  rm -fr DIR 'recursive with spaces'  rm -fr DIR 'recursive with spaces'
37  cp -r recursive 'recursive with spaces'  cp -r recursive 'recursive with spaces'
38  $VALGRIND jscoverage-server --no-highlight --report-dir=DIR &  server_port=`perl unused-port.pl`
39    $VALGRIND jscoverage-server --port=$server_port --no-highlight --report-dir=DIR &
40  server_pid=$!  server_pid=$!
 server_port=8080  
41    
42  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
43    
44  cat store.json | sed "s/@PREFIX@/\\/recursive%20with%20spaces\\//g" > TMP  cat store.json | sed "s/@PREFIX@/\\/recursive%20with%20spaces\\//g" > TMP
45  wget --post-file=TMP -q -O- http://127.0.0.1:8080/jscoverage-store > /dev/null  wget --post-file=TMP -q -O- http://127.0.0.1:${server_port}/jscoverage-store > /dev/null
46  cat store.expected.json | sed "s/@PREFIX@/\\/recursive%20with%20spaces\\//g" > TMP  cat store.expected.json | sed "s/@PREFIX@/\\/recursive%20with%20spaces\\//g" > TMP
47  json_cmp TMP DIR/jscoverage.json  json_cmp TMP DIR/jscoverage.json

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

  ViewVC Help
Powered by ViewVC 1.1.24