/[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 126 by siliconforks, Mon Jun 2 17:53:43 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:${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 shutdown_perl() {  shutdown_perl() {
27    wget -q -O- --post-data= http://127.0.0.1:8000/perl-shutdown > /dev/null    wget -q -O- --post-data= http://127.0.0.1:8000/perl-shutdown > /dev/null
28    wait $origin_server_pid    wait $origin_server_pid
29  }  }
30    
31  function cleanup() {  cleanup() {
32    rm -fr EXPECTED ACTUAL DIR OUT    rm -fr EXPECTED ACTUAL DIR OUT
33    shutdown    shutdown
34    shutdown_perl    shutdown_perl
# Line 52  Line 52 
52    
53  rm -fr DIR  rm -fr DIR
54  mkdir DIR  mkdir DIR
55  $VALGRIND jscoverage-server --proxy --report-dir=DIR > OUT 2> ERR &  $VALGRIND jscoverage-server --no-highlight --proxy --report-dir=DIR > OUT 2> ERR &
56  proxy_server_pid=$!  proxy_server_pid=$!
57  proxy_server_port=8080  proxy_server_port=8080
58    
# Line 95  Line 95 
95  diff ../jscoverage.html DIR/jscoverage.html  diff ../jscoverage.html DIR/jscoverage.html
96  diff ../jscoverage.css DIR/jscoverage.css  diff ../jscoverage.css DIR/jscoverage.css
97  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  
98  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
99    
100  ## send it an FTP request  ## send it an FTP request
# Line 126  Line 123 
123  # kill $proxy_server_pid  # kill $proxy_server_pid
124  shutdown  shutdown
125    
126  $VALGRIND jscoverage-server --port=8081 --proxy --report-dir=DIR --no-instrument=http://127.0.0.1:8000/1/ &  $VALGRIND jscoverage-server --no-highlight --port=8081 --proxy --report-dir=DIR --no-instrument=http://127.0.0.1:8000/1/ &
127  proxy_server_pid=$!  proxy_server_pid=$!
128  proxy_server_port=8081  proxy_server_port=8081
129    

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

  ViewVC Help
Powered by ViewVC 1.1.24