t0501: fix ambiguous shell construct for capture + subshells
[rainbows.git] / t / t0016-onenine-encoding-is-tricky.sh
blob07ebcee6f0833ba4a0f8c83309c5a7900be2d54c
1 #!/bin/sh
2 . ./test-lib.sh
3 t_plan 4 "proper handling of onenine encoding for $model"
5 t_begin "setup and startup" && {
6 rainbows_setup $model
7 rainbows -E none -D ./t0016.rb -c $unicorn_config
8 rainbows_wait_start
9 expect_sha1=8ff79d8115f9fe38d18be858c66aa08a1cc27a66
12 t_begin "response matches expected" && {
13 rm -f $ok
15 curl -sSf http://$listen/ && echo ok > $ok
16 ) | rsha1 > $tmp
17 test x$expect_sha1 = x"$(cat $tmp)"
20 t_begin "shutdown server" && {
21 kill -QUIT $rainbows_pid
24 dbgcat r_err
26 t_begin "check stderr" && check_stderr
28 t_done