mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
test/check-help: check that --help and -h are identical
This commit is contained in:
parent
ffb7406ba9
commit
9f9be6ea28
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user