doc: update support status for Ruby versions
[unicorn.git] / t / t0200-rack-hijack.sh
blobf7720713301bf45fd8a8c44c65537e2e0548662a
1 #!/bin/sh
2 . ./test-lib.sh
3 t_plan 5 "rack.hijack tests (Rack 1.5+ (Rack::VERSION >= [ 1,2]))"
5 t_begin "setup and start" && {
6 unicorn_setup
7 unicorn -D -c $unicorn_config hijack.ru
8 unicorn_wait_start
11 t_begin "check request hijack" && {
12 test "xrequest.hijacked" = x"$(curl -sSfv http://$listen/hijack_req)"
15 t_begin "check response hijack" && {
16 test "xresponse.hijacked" = x"$(curl -sSfv http://$listen/hijack_res)"
19 t_begin "killing succeeds" && {
20 kill $unicorn_pid
23 t_begin "check stderr" && {
24 check_stderr
27 t_done