coolio_thread_*: fix 416 response handling
[rainbows.git] / t / t0022-copy_stream-byte-range.sh
blobe4fcdbf3dc3fbde33b90bcab255898dbe6a30633
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 12 "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