Cmake docbook tests: Check the exported with one more tool

This commit is contained in:
Kornel Benko 2020-08-05 12:54:36 +02:00
parent 53e6d7adcb
commit 89feea25f1
2 changed files with 25 additions and 1 deletions

View File

@ -206,7 +206,7 @@ else()
if ($ENV{LYX_DEBUG_LATEX})
set(LyXExtraParams -dbg latex)
else()
set(LyXExtraParams)
set(LyXExtraParams -dbg info)
endif()
if(IgnoreErrorMessage)
foreach (_em ${IgnoreErrorMessage})
@ -235,6 +235,19 @@ else()
else()
set(xmllint_params)
set(executable_ ${PERL_EXECUTABLE} "${TOP_SRC_DIR}/development/autotests/filterXml4Sax.pl")
# Check with perl xml-parser
# needs XML::Parser module
message(STATUS "Calling ${PERL_EXECUTABLE} \"${TOP_SRC_DIR}/development/autotests/xmlParser.pl\" \"${result_file_name}\"")
execute_process(
COMMAND ${PERL_EXECUTABLE} "${TOP_SRC_DIR}/development/autotests/xmlParser.pl" "${result_file_name}"
OUTPUT_VARIABLE parserout
ERROR_VARIABLE parsererr
RESULT_VARIABLE _err
)
if (_err)
message(STATUS "${parsererr}")
endif()
Summary(_err "Checking \"${result_file_name}\" with xmlParser.pl")
endif()
if (XMLLINT_EXECUTABLE)
message(STATUS "Calling: " ${executable_} ${xmllint_params} " ${result_file_name}")

View File

@ -0,0 +1,11 @@
#! /usr/bin/env perl
use strict;
use XML::Parser;
my $p1 = XML::Parser->new(Style => 'Debug', ErrorContext => 2);
for my $arg (@ARGV) {
$p1->parsefile($arg);
}
exit(0);