http_server: kill a warning
[rainbows.git] / t / t0022-copy_stream-byte-range.sh
blob7539c025a89213ff95d374c96b330c502b8383b4
1 #!/bin/sh
2 . ./test-lib.sh
3 test -r random_blob || die "random_blob required, run with 'make $0'"
4 case $RUBY_VERSION in
5 1.9.*) ;;
6 *)
7 t_info "skipping $T since it can't IO.copy_stream"
8 exit 0
9 ;;
10 esac
12 case $model in
13 ThreadSpawn|WriterThreadSpawn|ThreadPool|WriterThreadPool|Base) ;;
15 t_info "skipping $T since it doesn't use IO.copy_stream"
16 exit 0
18 esac
20 t_plan 13 "IO.copy_stream byte range response for $model"
22 t_begin "setup and startup" && {
23 rtmpfiles out err
24 rainbows_setup $model
25 # can't load Rack::Lint here since it clobbers body#to_path
26 rainbows -E none -D large-file-response.ru -c $unicorn_config
27 rainbows_wait_start
30 . ./byte-range-common.sh