/[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 130 by siliconforks, Tue Jun 3 02:41:23 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  }  }
29    
# Line 46  Line 46 
46    
47  echo text/html > EXPECTED  echo text/html > EXPECTED
48  ! 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
49  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
50    
51  echo text/plain > EXPECTED  echo text/plain > EXPECTED
52  ! 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
53  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
54    
55  echo text/plain > EXPECTED  echo text/plain > EXPECTED
56  ! 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
57  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
58    
59  touch foo  touch foo
60  echo application/octet-stream > EXPECTED  echo application/octet-stream > EXPECTED
61  ! 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/foo 2> /dev/null > ACTUAL
62  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL
63    
64  touch foo.bar  touch foo.bar
65  echo application/octet-stream > EXPECTED  echo application/octet-stream > EXPECTED
66  ! 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/foo.bar 2> /dev/null > ACTUAL
67  diff EXPECTED ACTUAL  diff --strip-trailing-cr EXPECTED ACTUAL

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

  ViewVC Help
Powered by ViewVC 1.1.24