rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 07ebcee6f0833ba4a0f8c83309c5a7900be2d54c 549 bytes (raw)
$ git show HEAD:t/t0016-onenine-encoding-is-tricky.sh	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
#!/bin/sh
. ./test-lib.sh
t_plan 4 "proper handling of onenine encoding for $model"

t_begin "setup and startup" && {
	rainbows_setup $model
	rainbows -E none -D ./t0016.rb -c $unicorn_config
	rainbows_wait_start
	expect_sha1=8ff79d8115f9fe38d18be858c66aa08a1cc27a66
}

t_begin "response matches expected" && {
	rm -f $ok
	(
		curl -sSf http://$listen/ && echo ok > $ok
	) | rsha1 > $tmp
	test x$expect_sha1 = x"$(cat $tmp)"
}

t_begin "shutdown server" && {
	kill -QUIT $rainbows_pid
}

dbgcat r_err

t_begin "check stderr" && check_stderr

t_done

git clone https://yhbt.net/rainbows.git