Cmake tests: Amend a7112690: enable use of html5validator

Also add the Summary-output unconditionaly (e.g. also in case of no error)
This commit is contained in:
Kornel Benko 2023-01-11 06:49:28 +01:00
parent 9f3f21f0f9
commit 88087a3cf5

View File

@ -135,8 +135,8 @@ macro(check_xhtml_validate xhtml_file)
ERROR_VARIABLE xmlerr
RESULT_VARIABLE _err)
file(WRITE "${_outputfile}" ${xmlout})
Summary(_err "Validating \"${_outputfile}\"")
if (_err)
Summary(_err "${_err} validating \"${_outputfile}\"")
MATH(EXPR NO_FAILES "${NO_FAILES}+1")
endif()
if (NOT "${xmlout}" STREQUAL "")
@ -331,7 +331,7 @@ else()
if (format MATCHES "docbook5")
check_docbook_jing(${result_file_name})
else()
#check_xhtml_validate(${result_file_name})
check_xhtml_validate(${result_file_name})
endif()
endif()
if (XMLLINT_EXECUTABLE)