/[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 249 by siliconforks, Sun Oct 5 18:07:02 2008 UTC revision 276 by siliconforks, Sat Oct 11 22:38:19 2008 UTC
# Line 139  Line 139 
139  cat ../report.js recursive.expected/script.js | sed 's/@PREFIX@/\//g' | diff - OUT  cat ../report.js recursive.expected/script.js | sed 's/@PREFIX@/\//g' | diff - OUT
140  wget -q -O- http://127.0.0.1:8082/1/1.js | diff recursive/1/1.js -  wget -q -O- http://127.0.0.1:8082/1/1.js | diff recursive/1/1.js -
141  wget -q -O- http://127.0.0.1:8082/1/2/2.js | diff recursive/1/2/2.js -  wget -q -O- http://127.0.0.1:8082/1/2/2.js | diff recursive/1/2/2.js -
142    
143    # kill $server_pid
144    shutdown
145    
146    $VALGRIND jscoverage-server --port 8080 --encoding iso-8859-1 --document-root javascript &
147    server_pid=$!
148    server_port=8080
149    
150    sleep $delay
151    
152    wget -q -O- http://127.0.0.1:8080/javascript-iso-8859-1.js > OUT
153    cat ../report.js javascript.expected/javascript-iso-8859-1.js | sed 's/javascript-iso-8859-1.js/\/javascript-iso-8859-1.js/g' | diff - OUT
154    
155    # kill $server_pid
156    shutdown
157    
158    $VALGRIND jscoverage-server --no-highlight --port=8080 --encoding=utf-8 --document-root=javascript-utf-8 &
159    server_pid=$!
160    server_port=8080
161    
162    sleep $delay
163    
164    wget -q -O- http://127.0.0.1:8080/javascript-utf-8.js > OUT
165    cat ../report.js javascript-utf-8.expected/javascript-utf-8.js | sed 's/javascript-utf-8.js/\/javascript-utf-8.js/g' | diff - OUT
166    
167    # kill $server_pid
168    shutdown
169    
170    $VALGRIND jscoverage-server --port 8080 --encoding BOGUS --document-root javascript &
171    server_pid=$!
172    server_port=8080
173    
174    sleep $delay
175    
176    echo 500 > EXPECTED
177    ! curl -f -w '%{http_code}\n' http://127.0.0.1:8080/javascript-iso-8859-1.js 2> /dev/null > ACTUAL
178    diff EXPECTED ACTUAL
179    
180    # kill $server_pid
181    shutdown
182    
183    $VALGRIND jscoverage-server --port 8080 --encoding utf-8 --document-root javascript &
184    server_pid=$!
185    server_port=8080
186    
187    sleep $delay
188    
189    echo 500 > EXPECTED
190    ! curl -f -w '%{http_code}\n' http://127.0.0.1:8080/javascript-iso-8859-1.js 2> /dev/null > ACTUAL
191    diff EXPECTED ACTUAL

Legend:
Removed from v.249  
changed lines
  Added in v.276

  ViewVC Help
Powered by ViewVC 1.1.24