mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
test: cover legacy/deprecated systemd-analyze verbs
They're no longer documented since26e1e97345
but still work. (cherry picked from commit926d95cd4c
)
This commit is contained in:
parent
46a301accd
commit
9a94348ee8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user