Sha256: 6472f1e0f714c2ac8ec27ceefba94b9fe173d68ebf79d6aa4d232d6520e1f49f

Contents?: true

Size: 797 Bytes

Versions: 43

Compression:

Stored size: 797 Bytes

Contents

#!/bin/sh
nr=${nr-4}
. ./test-lib.sh

# ApacheBench (ab) is commonly installed in the sbin paths in Debian-based
# systems...
AB="$(which ab 2>/dev/null || :)"
if test -z "$AB"
then
	AB=$(PATH=/usr/local/sbin:/usr/sbin:$PATH which ab 2>/dev/null || :)
fi

if test -z "$AB"
then
	t_info "skipping $T since 'ab' could not be found"
	exit 0
fi

t_plan 4 "quiet spurious wakeups for $model"

t_begin "setup and start" && {
	rainbows_setup $model
	echo "preload_app true" >> $unicorn_config
	echo "worker_processes $nr" >> $unicorn_config
	rainbows -D env.ru -c $unicorn_config -E none
	rainbows_wait_start
}

t_begin "spam the server with requests" && {
	$AB -c1 -n100 http://$listen/
}

t_begin "killing succeeds" && {
	kill -QUIT $rainbows_pid
}

t_begin "check stderr" && {
	check_stderr
}

t_done

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rainbows-5.2.1 t/t0012-spurious-wakeups-quiet.sh
rainbows-5.2.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-5.1.1 t/t0012-spurious-wakeups-quiet.sh
rainbows-5.1.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-5.0.0.5.ge717 t/t0012-spurious-wakeups-quiet.sh
rainbows-5.0.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.7.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.6.2 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.6.1 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.6.0.4.g4108 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.6.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.5.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.4.3 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.4.2 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.4.1.1.gd5c8c t/t0012-spurious-wakeups-quiet.sh
rainbows-4.4.1 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.4.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.3.1 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.3.0 t/t0012-spurious-wakeups-quiet.sh
rainbows-4.2.0 t/t0012-spurious-wakeups-quiet.sh