blob 23557b7cf94e9be75c6db1208a4960821055c140 797 bytes (raw)
name: t/t0012-spurious-wakeups-quiet.sh # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| | #!/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
|
debug log:
solving 23557b7 ...
found 23557b7 in https://yhbt.net/rainbows.git/
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://yhbt.net/rainbows.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).