1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

test/check-help: check that --help and -h are identical

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-04-05 11:00:59 +02:00
parent ffb7406ba9
commit 9f9be6ea28

View File

@ -39,3 +39,9 @@ if ! ("$BINARY" --no-such-parameter 2>&1 1>/dev/null || :) | grep . >/dev/null;
echo "$(basename "$BINARY") with an unknown parameter does not print to stderr"
exit 4
fi
# --help and -h are equivalent
if ! diff <("$BINARY" -h) <("$BINARY" --help); then
echo "$(basename "$BINARY") --help and -h are not identical"
exit 5
fi