mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
test: debug cond test in azure
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+10
-3
@@ -28,20 +28,27 @@ test_one()
|
|||||||
say "Add stanza '$stanza' to $TEST_CONF ..."
|
say "Add stanza '$stanza' to $TEST_CONF ..."
|
||||||
texec sh -c "echo '$stanza' > $TEST_CONF"
|
texec sh -c "echo '$stanza' > $TEST_CONF"
|
||||||
|
|
||||||
|
texec sh -c "ls -l /run/ /run/finit/"
|
||||||
say 'Reload Finit'
|
say 'Reload Finit'
|
||||||
# texec sh -c "initctl debug"
|
# texec sh -c "initctl debug"
|
||||||
texec sh -c "initctl reload"
|
texec sh -c "initctl reload"
|
||||||
# texec sh -c "initctl status"
|
# texec sh -c "initctl status"
|
||||||
# texec sh -c "ps"
|
# texec sh -c "ps"
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
texec sh -c "ls -l /run/ /run/finit/"
|
||||||
say 'Asserting condition'
|
say 'Asserting condition'
|
||||||
texec sh -c "initctl cond set $cond"
|
texec sh -c "initctl cond set $cond"
|
||||||
|
|
||||||
# texec sh -c "initctl status"
|
sleep 1
|
||||||
# texec sh -c "ps"
|
texec sh -c "ls -l /run/ /run/finit/"
|
||||||
# texec sh -c "initctl status task.sh"
|
texec sh -c "initctl status"
|
||||||
|
texec sh -c "ps"
|
||||||
|
texec sh -c "initctl status task.sh"
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
texec sh -c "echo Hej; cat /run/task.state"
|
||||||
|
|
||||||
assert_file_contains /run/task.state 1
|
assert_file_contains /run/task.state 1
|
||||||
|
|
||||||
say 'Reload Finit'
|
say 'Reload Finit'
|
||||||
|
|||||||
Reference in New Issue
Block a user