2 test -r random_blob || die
"random_blob required, run with 'make $0'"
3 echo "input trailer test model=$model"
6 rtmpfiles unicorn_config tmp r_err r_out pid fifo ok
8 cat > $unicorn_config <<EOF
13 Rainbows! { use :$model }
16 rainbows
-D content-md5.ru
-c $unicorn_config
21 echo hello world | content-md5-put
25 ) | socat
- TCP
:$listen | utee
$fifo
27 fgrep
'HTTP/1.1 200 OK' $tmp
28 test xok
= x
"$(cat $ok)"
33 content-md5-put
< random_blob
37 ) | socat
- TCP
:$listen | utee
$fifo
39 fgrep
'HTTP/1.1 200 OK' $tmp
40 test xok
= x
"$(cat $ok)"
46 dd bs
=164 count
=1 < random_blob
48 dd bs
=4545 count
=1 < random_blob
50 dd bs
=1234 count
=1 < random_blob
52 ) 2>/dev
/null | content-md5-put
53 test xok
= x
"$(cat $ok)"
57 ) | socat
- TCP
:$listen | utee
$fifo
59 fgrep
'HTTP/1.1 200 OK' $tmp
60 test xok
= x
"$(cat $ok)"