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

Diff of /trunk/tests/server.sh

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

revision 114 by siliconforks, Sat May 31 21:39:39 2008 UTC revision 181 by siliconforks, Sun Sep 21 18:42:02 2008 UTC
# Line 18  Line 18 
18    
19  set -e  set -e
20    
21  function shutdown() {  shutdown() {
22    wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null    wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null
23    wait $server_pid    wait $server_pid
24  }  }
25    
26  function cleanup() {  cleanup() {
27    rm -fr EXPECTED ACTUAL DIR OUT    rm -fr EXPECTED ACTUAL DIR OUT
28    # kill $server_pid    # kill $server_pid
29    shutdown    shutdown
# Line 42  Line 42 
42    
43  rm -fr EXPECTED DIR OUT  rm -fr EXPECTED DIR OUT
44  mkdir DIR  mkdir DIR
45  $VALGRIND jscoverage-server --document-root=recursive --report-dir=DIR &  $VALGRIND jscoverage-server --no-highlight --document-root=recursive --report-dir=DIR &
46  server_pid=$!  server_pid=$!
47  server_port=8080  server_port=8080
48    
# Line 82  Line 82 
82  diff ../jscoverage.html DIR/jscoverage.html  diff ../jscoverage.html DIR/jscoverage.html
83  diff ../jscoverage.css DIR/jscoverage.css  diff ../jscoverage.css DIR/jscoverage.css
84  diff ../jscoverage-throbber.gif DIR/jscoverage-throbber.gif  diff ../jscoverage-throbber.gif DIR/jscoverage-throbber.gif
 diff ../jscoverage-sh_main.js DIR/jscoverage-sh_main.js  
 diff ../jscoverage-sh_javascript.js DIR/jscoverage-sh_javascript.js  
 diff ../jscoverage-sh_nedit.css DIR/jscoverage-sh_nedit.css  
85  echo -e 'jscoverage_isReport = true;\r' | cat ../jscoverage.js - | diff - DIR/jscoverage.js  echo -e 'jscoverage_isReport = true;\r' | cat ../jscoverage.js - | diff - DIR/jscoverage.js
86    
87  # 404 not found  # 404 not found
# Line 110  Line 107 
107    
108  rm -fr DIR  rm -fr DIR
109  mkdir DIR  mkdir DIR
110  $VALGRIND jscoverage-server --port=8081 --document-root=recursive --report-dir=DIR --no-instrument=/1/ &  case `uname` in
111      MINGW*)
112        $VALGRIND jscoverage-server --no-highlight --port=8081 --document-root=recursive --report-dir=DIR --no-instrument=1/ &
113        ;;
114      *)
115        $VALGRIND jscoverage-server --no-highlight --port=8081 --document-root=recursive --report-dir=DIR --no-instrument=/1/ &
116        ;;
117    esac
118  server_pid=$!  server_pid=$!
119  server_port=8081  server_port=8081
120    
# Line 124  Line 128 
128  # kill $server_pid  # kill $server_pid
129  shutdown  shutdown
130    
131  $VALGRIND jscoverage-server --port 8082 --document-root recursive --report-dir DIR --no-instrument 1/ &  $VALGRIND jscoverage-server --no-highlight --port 8082 --document-root recursive --report-dir DIR --no-instrument 1/ &
132  server_pid=$!  server_pid=$!
133  server_port=8082  server_port=8082
134    

Legend:
Removed from v.114  
changed lines
  Added in v.181

  ViewVC Help
Powered by ViewVC 1.1.24