Skip to content

Commit

Permalink
Revert test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Nov 13, 2024
1 parent e126f42 commit 17f5626
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions ci/pre-commit/doxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ fi
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }

# Doxygen supported version 1.8.20 to 1.9.1
doxygen --version
DOXYGEN_VERSION=$(doxygen --version)
echo "$DOXYGEN_VERSION"
if [ $(version "$DOXYGEN_VERSION") -lt $(version "1.8.20") ] || [ $(version $DOXYGEN_VERSION) -gt $(version "1.9.1") ]; then
echo -e "Warning: Unsupported Doxygen version $DOXYGEN_VERSION"
echo -e "Expecting Doxygen version from 1.8.20 to 1.9.1"
Expand All @@ -36,22 +34,16 @@ fi
# Run doxygen, ignore missing tag files error
TAG_ERROR1="error: Tag file '.*.tag' does not exist or is not a file. Skipping it..."
TAG_ERROR2="error: cannot open tag file .*.tag for writing"

cd doxygen
echo "--- Doxyfile ---"
cat Doxyfile
echo "----------------"
doxygen

DOXYGEN_STDERR=`cd doxygen && { cat Doxyfile ; echo QUIET = YES; echo GENERATE_HTML = NO; } | doxygen - 2>&1 | sed "/\($TAG_ERROR1\|$TAG_ERROR2\)/d"`
RETVAL=$?

#if [ "$RETVAL" != "0" ] || [ ! -z "$DOXYGEN_STDERR" ]; then
echo -e "\n>>>> FAILED: doxygen check; begin output\n"
echo -e "$DOXYGEN_STDERR"
echo -e "\n>>>> FAILED: doxygen check; end output\n"
# RETVAL=1 #because return value is not generated by doxygen 1.8.17
#else
# echo -e "\n>>>> PASSED: doxygen check\n"
#fi
if [ "$RETVAL" != "0" ] || [ ! -z "$DOXYGEN_STDERR" ]; then
echo -e "\n>>>> FAILED: doxygen check; begin output\n"
echo -e "$DOXYGEN_STDERR"
echo -e "\n>>>> FAILED: doxygen check; end output\n"
RETVAL=1 #because return value is not generated by doxygen 1.8.17
else
echo -e "\n>>>> PASSED: doxygen check\n"
fi

exit $RETVAL

0 comments on commit 17f5626

Please sign in to comment.