tests: Verify every tool has a manual page

This commit is contained in:
Jakub Jelen 2020-04-22 15:01:21 +02:00 committed by Frank Morgner
parent ddc049e37b
commit 3c7823d1f0
1 changed files with 13 additions and 1 deletions

View File

@ -17,5 +17,17 @@ for T in $TOOLS; do
done
if [ "$ALL" = 0 ]; then
echo "Not all the switches in help are documented in manual pages"
exit 1;
exit 1
fi
RES=0
# find all tools in src/tools (files without extension)
TOOLS=`find "${SOURCE_PATH}/src/tools" -maxdepth 1 -type f ! -name "*.*" | sed -E -e "s|.*/([a-z0-9-]*).*|\1|"`
for T in $TOOLS; do
if [[ ! -f "${SOURCE_PATH}/doc/tools/$T.1.xml" ]]; then
echo "Missing manual page for '$T'"
RES=1
fi
done
exit $RES