File: testserv.sh

package info (click to toggle)
finit 4.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,216 kB
  • sloc: ansic: 17,060; sh: 6,281; makefile: 532
file content (21 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Verify service readiness notification
# shellcheck disable=SC2034

set -eu
#set -x

#DEBUG=true
FINIT_ARGS="finit.cond=testserv"
TEST_DIR=$(dirname "$0")

# shellcheck source=/dev/null
. "$TEST_DIR/lib/setup.sh"

run "initctl"
run "initctl status testserv"
run "initctl cond dump"
sleep 1
retry 'assert_norestart testserv' 1 1

return 0