/[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 366 by siliconforks, Sun Oct 26 21:15:24 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 37  Line 39 
39    
40  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
41    
 export PATH=.:..:../js:$PATH  
   
42  if [ -z "$VALGRIND" ]  if [ -z "$VALGRIND" ]
43  then  then
44    delay=0.2    delay=0.2
# Line 47  Line 47 
47  fi  fi
48    
49  rm -fr DIR  rm -fr DIR
50  $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 &
51  server_pid=$!  server_pid=$!
52  server_port=8080  server_port=8080
53    
# Line 56  Line 56 
56  cat store.json | sed "s/@PREFIX@/\\//g" > TMP  cat store.json | sed "s/@PREFIX@/\\//g" > TMP
57  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
58  cat store.expected.json | sed "s/@PREFIX@/\\//g" > TMP  cat store.expected.json | sed "s/@PREFIX@/\\//g" > TMP
59  js json-cmp.js TMP DIR/jscoverage.json  json_cmp TMP DIR/jscoverage.json
60    
61  chmod -r DIR/jscoverage.json  chmod -r DIR/jscoverage.json
62    

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

  ViewVC Help
Powered by ViewVC 1.1.24