mirror of
https://github.com/walles/moar.git
synced 2024-09-11 12:15:43 +03:00
Handle the options test
This commit is contained in:
parent
e21da3dabe
commit
1209010995
2
test.sh
2
test.sh
@ -66,7 +66,7 @@ echo Test --version...
|
||||
diff -u <(./moar --version) <(git describe --tags --dirty --always)
|
||||
|
||||
echo Test that the man page and --help document the same set of options...
|
||||
MAN_OPTIONS="$(grep -E '^\\fB' moar.1 | cut -d\\ -f4- | sed 's/fR.*//' | sed 's/\\//g')"
|
||||
MAN_OPTIONS="$(grep -E '^\\fB\\-' moar.1 | cut -d\\ -f4- | sed 's/fR.*//' | sed 's/\\//g')"
|
||||
MOAR_OPTIONS="$(./moar --help | grep -E '^ -' | cut -d' ' -f3 | grep -v -- -version)"
|
||||
diff -u <(echo "${MAN_OPTIONS}") <(echo "${MOAR_OPTIONS}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user