3 t_plan
5 "parser error test for $model"
5 t_begin
"setup and startup" && {
7 rainbows
-D env.ru
-c $unicorn_config
11 t_begin
"send request" && {
13 printf 'GET / HTTP/1/1\r\nHost: example.com\r\n\r\n'
17 ) | socat
- TCP
:$listen > $fifo
18 test xok
= x$
(cat $ok)
23 t_begin
"response should be a 400" && {
24 grep -F 'HTTP/1.1 400 Bad Request' $tmp
27 t_begin
"server stderr should be clean" && check_stderr
29 t_begin
"term signal sent" && kill $rainbows_pid