From 266baa71dbb336d9c2eb1e4e7db3983477cc6ce0 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 3 Nov 2022 10:59:38 +0100 Subject: [PATCH] test: cover legacy/deprecated systemd-analyze verbs They're no longer documented since 26e1e97345 but still work. (cherry picked from commit 926d95cd4c209b8c292829511542b11d7c43e662) Related #2138081 --- test/units/testsuite-65.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/units/testsuite-65.sh b/test/units/testsuite-65.sh index ece6b8734e..89406a108e 100755 --- a/test/units/testsuite-65.sh +++ b/test/units/testsuite-65.sh @@ -6,7 +6,7 @@ set -eux # shellcheck source=test/units/assert.sh . "$(dirname "$0")"/assert.sh -systemd-analyze log-level debug +systemctl log-level debug export SYSTEMD_LOG_LEVEL=debug # Sanity checks @@ -19,6 +19,17 @@ systemd-analyze time || : systemd-analyze blame || : systemd-analyze critical-chain || : systemd-analyze plot >/dev/null || : +# legacy/deprecated options (moved to systemctl, but still usable from analyze) +systemd-analyze log-level +systemd-analyze log-level "$(systemctl log-level)" +systemd-analyze get-log-level +systemd-analyze set-log-level "$(systemctl log-level)" +systemd-analyze log-target +systemd-analyze log-target "$(systemctl log-target)" +systemd-analyze get-log-target +systemd-analyze set-log-target "$(systemctl log-target)" +systemd-analyze service-watchdogs +systemd-analyze service-watchdogs "$(systemctl service-watchdogs)" # dot systemd-analyze dot >/dev/null systemd-analyze dot systemd-journald.service >/dev/null