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