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

Diff of /trunk/tests/proxy.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:${proxy_server_port}/jscoverage-shutdown" > /dev/null    wget -q -O- --post-data= "http://127.0.0.1:${proxy_server_port}/jscoverage-shutdown" > /dev/null
23    wait $proxy_server_pid    wait $proxy_server_pid
24  }  }
25    
26  function cleanup() {  shutdown_perl() {
27      wget -q -O- --post-data= http://127.0.0.1:8000/perl-shutdown > /dev/null
28      wait $origin_server_pid
29    }
30    
31    cleanup() {
32    rm -fr EXPECTED ACTUAL DIR OUT    rm -fr EXPECTED ACTUAL DIR OUT
   kill $python_server_pid  
   # kill $proxy_server_pid  
33    shutdown    shutdown
34      shutdown_perl
35  }  }
36    
37  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
# Line 42  Line 46 
46  fi  fi
47    
48  cd recursive  cd recursive
49  python ../POSTServer.py > /dev/null 2> /dev/null &  perl ../server.pl > /dev/null 2> /dev/null &
50  python_server_pid=$!  origin_server_pid=$!
51  cd ..  cd ..
52    
53  rm -fr DIR  rm -fr DIR

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

  ViewVC Help
Powered by ViewVC 1.1.24