Sha256: f84f33ea88ef127a1daa6e96e8dfa5ea0c7355a93ba32dd19f32459f153f5949

Contents?: true

Size: 667 Bytes

Versions: 4

Compression:

Stored size: 667 Bytes

Contents

#!/bin/sh
. ./test-lib.sh
test -r random_blob || die "random_blob required, run with 'make $0'"
case $RUBY_ENGINE in
ruby) ;;
*)
	t_info "skipping $T since it can't load the sendfile gem, yet"
	exit 0
	;;
esac

skip_models EventMachine NeverBlock

t_plan 13 "sendfile byte range response for $model"

t_begin "setup and startup" && {
	rtmpfiles out err
	rainbows_setup $model
	echo 'require "sendfile"' >> $unicorn_config
	echo 'def (::IO).copy_stream(*x); abort "NO"; end' >> $unicorn_config

	# can't load Rack::Lint here since it clobbers body#to_path
	rainbows -E none -D large-file-response.ru -c $unicorn_config
	rainbows_wait_start
}

. ./byte-range-common.sh

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rainbows-3.4.0 t/t0023-sendfile-byte-range.sh
rainbows-3.3.0 t/t0023-sendfile-byte-range.sh
rainbows-3.2.0 t/t0023-sendfile-byte-range.sh
rainbows-3.1.0 t/t0023-sendfile-byte-range.sh