test: extend notify.sh with checks for 'restart serv' and 'reload'

Issue #343.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-01-15 06:34:05 +01:00
parent 4e74f9783a
commit 63044a4b81
+13
View File
@@ -54,6 +54,19 @@ test_one()
assert_status "serv" "running"
assert_cond "service/serv/ready"
say "Verify 'ready' is reasserted on 'initctl restart serv' ..."
texec sh -c "initctl restart serv"
sleep 1
assert_status "serv" "running"
assert_cond "service/serv/ready"
say "Verify 'ready' is reasserted on 'initctl reload' ..."
texec sh -c "initctl reload"
sleep 1
texec sh -c "initctl; initctl cond dump"
assert_status "serv" "running"
assert_cond "service/serv/ready"
say "Verify 'ready' is deasserted on stop ..."
texec sh -c "initctl stop serv"
sleep 1