autobuild: Refactor doxygen version check

Signed-off-by: Michal Berger <michal.berger@intel.com>
Change-Id: I053dedc537d4f58db42cbad9480c38ef520d1d9b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16028
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Kamil Godzwon <kamilx.godzwon@intel.com>
This commit is contained in:
Michal Berger 2022-12-20 11:59:30 +01:00 committed by Tomasz Zawadzki
parent 5aaa207a05
commit 0fa77938a7

View File

@ -292,19 +292,13 @@ _build_doc() {
if [[ "$doxygenv" == "1.8.20" ]]; then if [[ "$doxygenv" == "1.8.20" ]]; then
# Doxygen 1.8.20 produces false positives, see: # Doxygen 1.8.20 produces false positives, see:
# https://github.com/doxygen/doxygen/issues/7948 # https://github.com/doxygen/doxygen/issues/7948
if grep -vE '\\ilinebr' "$out"/doxygen.log; then grep -vE '\\ilinebr'
echo "Doxygen errors found!"
exit 1
fi
elif [[ "$doxygenv" == "1.9.5" ]]; then elif [[ "$doxygenv" == "1.9.5" ]]; then
# Doxygen 1.9.5 produces false positives, see: # Doxygen 1.9.5 produces false positives, see:
# https://github.com/doxygen/doxygen/issues/9552 and # https://github.com/doxygen/doxygen/issues/9552 and
# https://github.com/doxygen/doxygen/issues/9678 # https://github.com/doxygen/doxygen/issues/9678
if grep -vE '\\ifile|@param' "$out"/doxygen.log; then grep -vE '\\ifile|@param'
echo "Doxygen errors found!" fi < "$out/doxygen.log" && echo "Doxygen errors found!" && return 1
exit 1
fi
fi
echo "Doxygen $doxygenv detected. No warnings except false positives, continuing the test" echo "Doxygen $doxygenv detected. No warnings except false positives, continuing the test"
fi fi