/[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 258 by siliconforks, Sun Oct 5 18:11:30 2008 UTC revision 276 by siliconforks, Sat Oct 11 22:38:19 2008 UTC
# Line 163  Line 163 
163    
164  wget -q -O- http://127.0.0.1:8080/javascript-utf-8.js > OUT  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  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.258  
changed lines
  Added in v.276

  ViewVC Help
Powered by ViewVC 1.1.24