From 3c7823d1f0b4870f4ae310aa052821f82debee67 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 22 Apr 2020 15:01:21 +0200 Subject: [PATCH] tests: Verify every tool has a manual page --- tests/test-manpage.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/test-manpage.sh b/tests/test-manpage.sh index 6567534a..67eef8bf 100755 --- a/tests/test-manpage.sh +++ b/tests/test-manpage.sh @@ -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