From f2194e053f43e68e24823f3c400697355193e136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 17 Aug 2026 15:49:00 +0200 Subject: [PATCH] test: also exercise the "help" verb of introspectable commands Verb-based commands register the help verb with VERB_COMMON_HELP_AUTO("name"), where the name is spelled separately from the one used for --help, so let's check that it works too. --- test/units/TEST-74-AUX-UTILS.introspect-cli.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/units/TEST-74-AUX-UTILS.introspect-cli.sh b/test/units/TEST-74-AUX-UTILS.introspect-cli.sh index ec3b47b487..b53741aa25 100755 --- a/test/units/TEST-74-AUX-UTILS.introspect-cli.sh +++ b/test/units/TEST-74-AUX-UTILS.introspect-cli.sh @@ -96,6 +96,11 @@ for i in "${INTROSPECTABLE[@]}"; do $i --introspect-cli | jq -e \ 'any(.commands[]; [.options[].names[-1]] | contains(["--help", "--version", "--introspect-cli"]))' $i --intro | grep -e --help + + # If the tool has a "help" verb, it must work too + if $i --introspect-cli | jq -e 'any(.commands[]; (.verbs // []) | any(.names[0] == "help"))' >/dev/null; then + $i help >/dev/null + fi done # systemd-hwdb defines verbs, check that they are described