tests: Verify every tool has a manual page
This commit is contained in:
parent
ddc049e37b
commit
3c7823d1f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue