2 nr_client
=${nr_client-25}
7 test -r random_blob || die
"random_blob required, run with 'make $0'"
10 rtmpfiles unicorn_config tmp r_err r_out pid fifo ok
14 cat > $unicorn_config <<EOF
24 rainbows
-D content-md5.ru
-c $unicorn_config
29 echo hello world | content-md5-put
33 ) | socat
- TCP
:$listen |
tee $fifo
35 fgrep
'HTTP/1.1 200 OK' $tmp
36 test xok
= x
"$(cat $ok)"
42 content-md5-put
< random_blob
46 ) | socat
- TCP
:$listen |
tee $fifo
48 fgrep
'HTTP/1.1 200 OK' $tmp
49 test xok
= x
"$(cat $ok)"