Sha256: 53c23a7413821ef7cbf878bd5c2e2097bdbf8dba6e9dfeef7d5d20b1b425b01e

Contents?: true

Size: 699 Bytes

Versions: 22

Compression:

Stored size: 699 Bytes

Contents

#!/bin/sh
. ./test-lib.sh
skip_models StreamResponseEpoll
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

22 entries across 22 versions & 1 rubygems

Version Path
rainbows-5.2.1 t/t0023-sendfile-byte-range.sh
rainbows-5.2.0 t/t0023-sendfile-byte-range.sh
rainbows-5.1.1 t/t0023-sendfile-byte-range.sh
rainbows-5.1.0 t/t0023-sendfile-byte-range.sh
rainbows-5.0.0.5.ge717 t/t0023-sendfile-byte-range.sh
rainbows-5.0.0 t/t0023-sendfile-byte-range.sh
rainbows-4.7.0 t/t0023-sendfile-byte-range.sh
rainbows-4.6.2 t/t0023-sendfile-byte-range.sh
rainbows-4.6.1 t/t0023-sendfile-byte-range.sh
rainbows-4.6.0.4.g4108 t/t0023-sendfile-byte-range.sh
rainbows-4.6.0 t/t0023-sendfile-byte-range.sh
rainbows-4.5.0 t/t0023-sendfile-byte-range.sh
rainbows-4.4.3 t/t0023-sendfile-byte-range.sh
rainbows-4.4.2 t/t0023-sendfile-byte-range.sh
rainbows-4.4.1.1.gd5c8c t/t0023-sendfile-byte-range.sh
rainbows-4.4.1 t/t0023-sendfile-byte-range.sh
rainbows-4.4.0 t/t0023-sendfile-byte-range.sh
rainbows-4.3.1 t/t0023-sendfile-byte-range.sh
rainbows-4.3.0 t/t0023-sendfile-byte-range.sh
rainbows-4.2.0 t/t0023-sendfile-byte-range.sh