stream_response_epoll: our most "special" concurrency option yet
[rainbows.git] / t / t0023-sendfile-byte-range.sh
bloba5b6ab25dea9558c9293494e73e8505c6b660fcc
1 #!/bin/sh
2 . ./test-lib.sh
3 skip_models StreamResponseEpoll
4 test -r random_blob || die "random_blob required, run with 'make $0'"
5 case $RUBY_ENGINE in
6 ruby) ;;
7 *)
8 t_info "skipping $T since it can't load the sendfile gem, yet"
9 exit 0
11 esac
13 skip_models EventMachine NeverBlock
15 t_plan 13 "sendfile byte range response for $model"
17 t_begin "setup and startup" && {
18 rtmpfiles out err
19 rainbows_setup $model
20 echo 'require "sendfile"' >> $unicorn_config
21 echo 'def (::IO).copy_stream(*x); abort "NO"; end' >> $unicorn_config
23 # can't load Rack::Lint here since it clobbers body#to_path
24 rainbows -E none -D large-file-response.ru -c $unicorn_config
25 rainbows_wait_start
28 . ./byte-range-common.sh