File: t0014-rewindable-input-true.sh

package info (click to toggle)
unicorn 6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,324 kB
  • sloc: ruby: 8,068; ansic: 4,175; sh: 1,773; perl: 53; makefile: 8
file content (24 lines) | stat: -rwxr-xr-x 430 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
. ./test-lib.sh
t_plan 4 "rewindable_input toggled to true"

t_begin "setup and start" && {
	unicorn_setup
	echo rewindable_input true >> $unicorn_config
	unicorn -D -c $unicorn_config t0014.ru
	unicorn_wait_start
}

t_begin "ensure worker is started" && {
	test xOK = x$(curl -T t0014.ru -sSf http://$listen/)
}

t_begin "killing succeeds" && {
	kill $unicorn_pid
}

t_begin "check stderr" && {
	check_stderr
}

t_done