/[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 218 by siliconforks, Fri Oct 3 02:27:00 2008 UTC revision 250 by siliconforks, Sun Oct 5 18:07:32 2008 UTC
# Line 69  Line 69 
69  wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.html | diff recursive/1/2/2.html -  wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.html | diff recursive/1/2/2.html -
70  wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.css | diff recursive/1/2/2.css -  wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/1/2/2.css | diff recursive/1/2/2.css -
71    
72    # test localhost
73    wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://localhost:8000/index.html | diff recursive/index.html -
74    
75    # test actual hostname
76    h=`hostname`
77    wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://${h}:8000/index.html | diff recursive/index.html -
78    
79  # test query string  # test query string
80  wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/index.html?foo | diff recursive/index.html -  wget -q -O- -e 'http_proxy=http://127.0.0.1:8080/' http://127.0.0.1:8000/index.html?foo | diff recursive/index.html -
81    
# Line 98  Line 105 
105  diff ../jscoverage-throbber.gif DIR/jscoverage-throbber.gif  diff ../jscoverage-throbber.gif DIR/jscoverage-throbber.gif
106  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
107    
108  ## send it an FTP request  # send it an FTP request
109  #echo 400 > EXPECTED  echo 400 > EXPECTED
110  #! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 ftp://ftp.example.com 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 ftp://ftp.example.com 2> /dev/null > ACTUAL
111  #diff EXPECTED ACTUAL  diff EXPECTED ACTUAL
112  #  
113  ## nonexistent domain  # nonexistent domain
114  #echo 500 > EXPECTED  echo 504 > EXPECTED
115  #! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://nonexistent 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://nonexistent 2> /dev/null > ACTUAL
116  #diff EXPECTED ACTUAL  diff EXPECTED ACTUAL
117    
118  # 404 not found  # 404 not found
119  echo 404 > EXPECTED  echo 404 > EXPECTED

Legend:
Removed from v.218  
changed lines
  Added in v.250

  ViewVC Help
Powered by ViewVC 1.1.24