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

Diff of /trunk/tests/store-unreadable-json.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 130 by siliconforks, Tue Jun 3 02:41:23 2008 UTC revision 337 by siliconforks, Thu Oct 23 20:10:48 2008 UTC
# Line 18  Line 18 
18    
19  set -e  set -e
20    
21    . common.sh
22    
23  # skip on windows  # skip on windows
24  uname=`uname`  uname=`uname`
25  case "$uname" in  case "$uname" in
# Line 47  Line 49 
49  fi  fi
50    
51  rm -fr DIR  rm -fr DIR
52  $VALGRIND jscoverage-server --document-root=recursive --report-dir=DIR > OUT 2> ERR &  $VALGRIND jscoverage-server --no-highlight --document-root=recursive --report-dir=DIR > OUT 2> ERR &
53  server_pid=$!  server_pid=$!
54  server_port=8080  server_port=8080
55    
# Line 56  Line 58 
58  cat store.json | sed "s/@PREFIX@/\\//g" > TMP  cat store.json | sed "s/@PREFIX@/\\//g" > TMP
59  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:8080/jscoverage-store > /dev/null
60  cat store.expected.json | sed "s/@PREFIX@/\\//g" > TMP  cat store.expected.json | sed "s/@PREFIX@/\\//g" > TMP
61  js json-cmp.js TMP DIR/jscoverage.json  json_cmp TMP DIR/jscoverage.json
62    
63  chmod -r DIR/jscoverage.json  chmod -r DIR/jscoverage.json
64    

Legend:
Removed from v.130  
changed lines
  Added in v.337

  ViewVC Help
Powered by ViewVC 1.1.24