udev/iocost: convert to VERB_COMMAND and add --introspect-cli

The custom help() is replaced by a COMMAND() description, and
--introspect-cli is added. The tool has no man page of its own, so
iocost.conf(5), which describes it, is referenced. The test now also looks
for commands in /usr/lib/udev, where the udev helpers are installed.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-08-18 23:04:06 +02:00
parent 92a97a2b9d
commit c62bfac025
2 changed files with 16 additions and 34 deletions
@@ -3,9 +3,9 @@
set -eux
set -o pipefail
# Some commands are in $PATH, others are in our private directory.
# Check the other location too.
PATH=$PATH:/usr/lib/systemd
# Some commands are in $PATH, others are in our private directories.
# Check the other locations too.
PATH=$PATH:/usr/lib/systemd:/usr/lib/udev
export SYSTEMD_PAGER=cat
@@ -17,6 +17,7 @@ INTROSPECTABLE=(
homectl
hostnamectl
importctl
iocost
journalctl
localectl
loginctl