From: Lennart Poettering Date: Wed, 18 Feb 2026 14:16:14 +0000 (+0100) Subject: ci: add proper CI test for systemd-report X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3aff0c20a8b57519f7d6047da755b65fe921309;p=thirdparty%2Fsystemd.git ci: add proper CI test for systemd-report --- diff --git a/test/units/TEST-74-AUX-UTILS.report.sh b/test/units/TEST-74-AUX-UTILS.report.sh new file mode 100755 index 00000000000..3e1f2af1145 --- /dev/null +++ b/test/units/TEST-74-AUX-UTILS.report.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -eux +set -o pipefail + +# Unset $PAGER so we don't have to use --no-pager everywhere +export PAGER= + +systemd-report --help +systemd-report help +systemd-report --version +systemd-report --json=help + +systemd-report metrics +systemd-report metrics -j +systemd-report metrics --no-legend +systemd-report describe-metrics +systemd-report describe-metrics -j +systemd-report describe-metrics --no-legend +systemd-report list-sources +systemd-report list-sources -j +systemd-report list-sources --no-legend + +systemd-report metrics io +systemd-report metrics io.systemd piff +systemd-report metrics piff +systemd-report describe-metrics io +systemd-report describe-metrics io.systemd piff +systemd-report describe-metrics piff + +# test io.systemd.Network Metrics +varlinkctl info /run/systemd/report/io.systemd.Network +varlinkctl list-methods /run/systemd/report/io.systemd.Network +varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics.List {} +varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics.Describe {} diff --git a/test/units/TEST-74-AUX-UTILS.varlinkctl.sh b/test/units/TEST-74-AUX-UTILS.varlinkctl.sh index d72acc59497..43080922401 100755 --- a/test/units/TEST-74-AUX-UTILS.varlinkctl.sh +++ b/test/units/TEST-74-AUX-UTILS.varlinkctl.sh @@ -242,12 +242,3 @@ systemd-run --wait --pipe --user --machine testuser@ \ # test io.systemd.Unit in user manager systemd-run --wait --pipe --user --machine testuser@ \ varlinkctl --more call "/run/user/$testuser_uid/systemd/io.systemd.Manager" io.systemd.Unit.List '{}' - -# test report -systemd-report metrics - -# test io.systemd.Network Metrics -varlinkctl info /run/systemd/report/io.systemd.Network -varlinkctl list-methods /run/systemd/report/io.systemd.Network -varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics.List {} -varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics.Describe {}