/[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 130 by siliconforks, Tue Jun 3 02:41:23 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 110  Line 110 
110    
111  rm -fr DIR  rm -fr DIR
112  mkdir DIR  mkdir DIR
113  $VALGRIND jscoverage-server --port=8081 --document-root=recursive --report-dir=DIR --no-instrument=/1/ &  case `uname` in
114      MINGW*)
115        $VALGRIND jscoverage-server --port=8081 --document-root=recursive --report-dir=DIR --no-instrument=1/ &
116        ;;
117      *)
118        $VALGRIND jscoverage-server --port=8081 --document-root=recursive --report-dir=DIR --no-instrument=/1/ &
119        ;;
120    esac
121  server_pid=$!  server_pid=$!
122  server_port=8081  server_port=8081
123    

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

  ViewVC Help
Powered by ViewVC 1.1.24