3 test -r random_blob || die
"random_blob required, run with 'make $0'"
4 echo "input trailer test model=$model"
8 rtmpfiles unicorn_config tmp r_err r_out pid fifo ok
12 cat > $unicorn_config <<EOF
17 Rainbows! { use :$model }
20 rainbows
-D content-md5.ru
-c $unicorn_config
25 echo hello world | content-md5-put
29 ) | socat
- TCP
:$listen | utee
$fifo
31 fgrep
'HTTP/1.1 200 OK' $tmp
32 test xok
= x
"$(cat $ok)"
38 content-md5-put
< random_blob
42 ) | socat
- TCP
:$listen | utee
$fifo
44 fgrep
'HTTP/1.1 200 OK' $tmp
45 test xok
= x
"$(cat $ok)"
51 dd bs
=164 count
=1 < random_blob
53 dd bs
=4545 count
=1 < random_blob
55 dd bs
=1234 count
=1 < random_blob
57 ) 2>/dev
/null | content-md5-put
58 test xok
= x
"$(cat $ok)"
62 ) | socat
- TCP
:$listen | utee
$fifo
64 fgrep
'HTTP/1.1 200 OK' $tmp
65 test xok
= x
"$(cat $ok)"