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