]> git.lyx.org Git - lyx.git/commitdiff
Cmake tests: Amend a7112690: enable use of html5validator
authorKornel Benko <kornel@lyx.org>
Wed, 11 Jan 2023 05:49:28 +0000 (06:49 +0100)
committerKornel Benko <kornel@lyx.org>
Wed, 11 Jan 2023 05:49:28 +0000 (06:49 +0100)
Also add the Summary-output unconditionaly (e.g. also in case of no error)

development/autotests/export.cmake

index aed57b87abdc9a96b84f57c4af9b6e62d58885f0..0dedb48ac692a87b4ec269d828da0895c6787d14 100755 (executable)
@@ -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)