Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
blob b468d9d92ac3533ae9026e245e4272d914b0539d 1025 bytes (raw)
name: t/t0041-optional-pool-size.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
42
43
44
45
46
47
48
49
50
51
52
 
#!/bin/sh
. ./test-lib.sh

case $model in
EventMachineThreadDefer|EventMachineThreadPool|\
NeverBlock|CoolioThreadPool|XEpollThreadPool) ;;
*)
	t_info "skipping $model.$T since it doesn't support :pool_size"
	exit
	;;
esac

t_plan 6 "optional :pool_size argument for $model"

t_begin "setup and startup" && {
	rtmpfiles curl_out curl_err
	rainbows_setup $model
}

t_begin "fails with bad :pool_size" && {
	ed -s $unicorn_config <<EOF
,s/use :$model/use :$model, :pool_size => -666/
w
EOF
	grep "pool_size" $unicorn_config
	rainbows -D env.ru -c $unicorn_config || echo err=$? > $ok
	test x"$(cat $ok)" = "xerr=1"
}

t_begin "starts with correct :pool_size" && {
	ed -s $unicorn_config <<EOF
,s/use :$model.*/use :$model, :pool_size => 6/
w
EOF
	grep "pool_size" $unicorn_config
	rainbows -D env.ru -c $unicorn_config
	rainbows_wait_start
}

t_begin "regular TCP request works right" && {
	curl -sSfv http://$listen/
}

t_begin "no errors in stderr" && {
	check_stderr
}

t_begin "shutdown" && {
	kill $rainbows_pid
}

t_done

debug log:

solving b468d9d ...
found b468d9d in https://yhbt.net/rainbows-public/1379421104-75563-1-git-send-email-godfat@godfat.org/
found f5f6400 in https://yhbt.net/rainbows.git/
preparing index
index prepared:
100755 f5f640078358b803b545b373a6a28318595bb878	t/t0041-optional-pool-size.sh

applying [1/1] https://yhbt.net/rainbows-public/1379421104-75563-1-git-send-email-godfat@godfat.org/
diff --git a/t/t0041-optional-pool-size.sh b/t/t0041-optional-pool-size.sh
index f5f6400..b468d9d 100755

Checking patch t/t0041-optional-pool-size.sh...
Applied patch t/t0041-optional-pool-size.sh cleanly.

index at:
100755 b468d9d92ac3533ae9026e245e4272d914b0539d	t/t0041-optional-pool-size.sh

(*) 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).