unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob 779dc0264aa03c08bcbd71f653e15861ead092e2 416 bytes (raw)
$ git show v4.8.1:t/t0300-no-default-middleware.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
 
#!/bin/sh
. ./test-lib.sh
t_plan 3 "test the -N / --no-default-middleware option"

t_begin "setup and start" && {
	unicorn_setup
	unicorn -N -D -c $unicorn_config fails-rack-lint.ru
	unicorn_wait_start
}

t_begin "check exit status with Rack::Lint not present" && {
	test 42 -eq "$(curl -sf -o/dev/null -w'%{http_code}' http://$listen/)"
}

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

t_done

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