/[jscoverage]/trunk/tests/server-content-types.sh
ViewVC logotype

Diff of /trunk/tests/server-content-types.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 171 by siliconforks, Wed Sep 17 04:31:46 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:${server_port}/jscoverage-shutdown" > /dev/null    wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null
23    wait $server_pid    wait $server_pid
24  }  }
25    
26  function cleanup() {  cleanup() {
27    shutdown    shutdown
28      rm -f x x.y
29  }  }
30    
31  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
# Line 46  Line 47 
47    
48  echo text/html > EXPECTED  echo text/html > EXPECTED
49  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/recursive/index.html 2> /dev/null > ACTUAL  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/recursive/index.html 2> /dev/null > ACTUAL
50  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
51    
52  echo text/plain > EXPECTED  echo text/plain > EXPECTED
53  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/recursive/unix.txt 2> /dev/null > ACTUAL  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/recursive/unix.txt 2> /dev/null > ACTUAL
54  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
55    
56  echo text/plain > EXPECTED  echo text/plain > EXPECTED
57  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/recursive/windows.txt 2> /dev/null > ACTUAL  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/recursive/windows.txt 2> /dev/null > ACTUAL
58  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
59    
60  touch foo  touch x
61  echo application/octet-stream > EXPECTED  echo application/octet-stream > EXPECTED
62  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/foo 2> /dev/null > ACTUAL  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/x 2> /dev/null > ACTUAL
63  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
64    
65  touch foo.bar  touch x.y
66  echo application/octet-stream > EXPECTED  echo application/octet-stream > EXPECTED
67  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/foo.bar 2> /dev/null > ACTUAL  ! curl -f -w '%{content_type}\n' -o /dev/null http://127.0.0.1:8080/x.y 2> /dev/null > ACTUAL
68  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL

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

  ViewVC Help
Powered by ViewVC 1.1.24