mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03: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"
|
echo "$(basename "$BINARY") with an unknown parameter does not print to stderr"
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
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