From 63044a4b81de9ab9e5e194f792433461ce6dea9c Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 15 Jan 2023 05:24:27 +0100 Subject: [PATCH] test: extend notify.sh with checks for 'restart serv' and 'reload' Issue #343. Signed-off-by: Joachim Wiberg --- test/notify.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/notify.sh b/test/notify.sh index 3636c8f0..7185e2b0 100755 --- a/test/notify.sh +++ b/test/notify.sh @@ -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