4 *CoolioThread
*|
*RevThread
*|Thread
*|
*Fiber
*|Revactor|NeverBlock
) ;;
6 t_info
"skipping $T since it's not compatible with $model"
10 nr_client
=30 APP_POOL_SIZE
=4
12 t_plan
6 "AppPool Rack middleware test for $model"
14 t_begin
"configure and start" && {
15 rtmpfiles curl_out curl_err
16 rainbows_setup
$model 50
17 APP_POOL_SIZE
=$APP_POOL_SIZE rainbows
-D t9000.ru
-c $unicorn_config
21 t_begin
"launch $nr_client requests" && {
23 seq="$(awk "BEGIN
{for(i
=0;i
<$nr_client;++i
) print i
}" </dev/null)"
26 curl
-sSf http
://$listen/ >> $curl_out 2>> $curl_err &
29 t_info elapsed
=$
(( $
(unix_time
) - $start ))
32 t_begin
"kill server" && {
36 t_begin
"$APP_POOL_SIZE instances of app were used" && {
37 test $APP_POOL_SIZE -eq $
(sort < $curl_out |
uniq | count_lines
)
40 t_begin
"no errors in curl stderr" && {
44 t_begin
"no errors in Rainbows! stderr" && {