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

Diff of /trunk/tests/store.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 259 by siliconforks, Sun Oct 5 18:11:56 2008 UTC
# Line 45  Line 45 
45  fi  fi
46    
47  rm -fr DIR  rm -fr DIR
48  $VALGRIND jscoverage-server --document-root=recursive --report-dir=DIR &  $VALGRIND jscoverage-server --no-highlight --document-root=recursive --report-dir=DIR &
49  server_pid=$!  server_pid=$!
50  server_port=8080  server_port=8080
51    
# Line 66  Line 66 
66  ! curl -f -w '%{http_code}\n' http://127.0.0.1:8080/jscoverage-store 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' http://127.0.0.1:8080/jscoverage-store 2> /dev/null > ACTUAL
67  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL
68    
69    # try with a path
70    cat store.json | sed "s/@PREFIX@/\\//g" > TMP
71    wget --post-file=TMP -q -O- http://127.0.0.1:8080/jscoverage-store/DIR > /dev/null
72    cat store.expected.json | sed "s/@PREFIX@/\\//g" > TMP
73    js json-cmp.js TMP DIR/DIR/jscoverage.json
74    
75  shutdown  shutdown
76    
77  cd recursive  cd recursive
# Line 74  Line 80 
80  cd ..  cd ..
81    
82  rm -fr DIR  rm -fr DIR
83  $VALGRIND jscoverage-server --proxy --report-dir=DIR > OUT 2> ERR &  $VALGRIND jscoverage-server --no-highlight --proxy --report-dir=DIR > OUT 2> ERR &
84  server_pid=$!  server_pid=$!
85  server_port=8080  server_port=8080
86    
# Line 101  Line 107 
107  shutdown  shutdown
108    
109  rm -fr DIR  rm -fr DIR
110  $VALGRIND jscoverage-server --proxy --report-dir=DIR > OUT 2> ERR &  $VALGRIND jscoverage-server --no-highlight --proxy --report-dir=DIR > OUT 2> ERR &
111  server_pid=$!  server_pid=$!
112  server_port=8080  server_port=8080
113    
# Line 117  Line 123 
123  shutdown  shutdown
124    
125  rm -fr DIR  rm -fr DIR
126  $VALGRIND jscoverage-server --proxy --report-dir=DIR > OUT 2> ERR &  $VALGRIND jscoverage-server --no-highlight --proxy --report-dir=DIR > OUT 2> ERR &
127  server_pid=$!  server_pid=$!
128  server_port=8080  server_port=8080
129    

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

  ViewVC Help
Powered by ViewVC 1.1.24