summaryrefslogtreecommitdiffstats
path: root/test/TEST-02-SYSTEMD/systemd-analyze.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEST-02-SYSTEMD/systemd-analyze.sh')
-rwxr-xr-xtest/TEST-02-SYSTEMD/systemd-analyze.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/TEST-02-SYSTEMD/systemd-analyze.sh b/test/TEST-02-SYSTEMD/systemd-analyze.sh
new file mode 100755
index 0000000..55f8728
--- /dev/null
+++ b/test/TEST-02-SYSTEMD/systemd-analyze.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+for i in \
+ sysinit.target \
+ basic.target \
+ initrd-fs.target \
+ initrd.target \
+ initrd-switch-root.target \
+ emergency.target \
+ shutdown.target; do
+ if ! systemd-analyze verify "$i"; then
+ warn "systemd-analyze verify $i failed"
+ poweroff
+ fi
+done