[LyX/master] Cmake tests: Add docbook5 exports to the tests
Kornel Benko
kornel at lyx.org
Mon Jul 20 08:18:26 UTC 2020
commit 15947a7db41f759d0170c7829535d36bbc007abe
Author: Kornel Benko <kornel at lyx.org>
Date: Mon Jul 20 10:42:34 2020 +0200
Cmake tests: Add docbook5 exports to the tests
---
development/autotests/ExportTests.cmake | 19 +++++++++++++------
development/autotests/export.cmake | 4 ++--
2 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/development/autotests/ExportTests.cmake b/development/autotests/ExportTests.cmake
index febac16..ce0e703 100644
--- a/development/autotests/ExportTests.cmake
+++ b/development/autotests/ExportTests.cmake
@@ -52,20 +52,22 @@ macro(getoutputformats filepath varname format_set)
file(STRINGS "${filepath}" lines)
# What should we test, if default_output_format is not defined?
# For now we test everything ...
- set(out_formats "xhtml" ${DVI_FORMATS} ${PDF_FORMATS})
+ set(out_formats "xhtml" "docbook5" ${DVI_FORMATS} ${PDF_FORMATS})
foreach(_l IN LISTS lines)
if(_l MATCHES "^\\\\default_output_format +\([^ ]+\)")
set(_format ${CMAKE_MATCH_1})
if(_format STREQUAL "default")
- set(out_formats "xhtml" ${DVI_FORMATS} ${PDF_FORMATS})
+ set(out_formats "xhtml" "docbook5" ${DVI_FORMATS} ${PDF_FORMATS})
else()
set(${format_set} ${_format})
if(_format STREQUAL "pdf2" AND "${filepath}" MATCHES "/doc/")
- set(out_formats "xhtml" ${DVI_FORMATS} ${PDF_FORMATS})
+ set(out_formats "xhtml" "docbook5" ${DVI_FORMATS} ${PDF_FORMATS})
elseif(_format MATCHES "pdf$")
- set(out_formats "xhtml" ${PDF_FORMATS})
+ set(out_formats "xhtml" "docbook5" ${PDF_FORMATS})
elseif(_format MATCHES "dvi$")
- set(out_formats "xhtml" ${DVI_FORMATS})
+ set(out_formats "xhtml" "docbook5" ${DVI_FORMATS})
+ elseif(_format MATCHES "docbook5")
+ set(out_formats "docbook5")
elseif(_format MATCHES "xhtml")
set(out_formats "xhtml")
else()
@@ -452,6 +454,11 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates lib/ta
endif()
string(REGEX REPLACE "[\\(\\)]" "_" TestName "${TestName1}")
maketestname(TestName inverted invertedTests ignoredTests unreliableTests mytestlabel)
+ if (format MATCHES "docbook5")
+ set(f_extension "xml")
+ else()
+ set(f_extension ${format})
+ endif()
if(TestName)
add_test(NAME ${TestName}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}"
@@ -461,7 +468,7 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates lib/ta
-DWORKDIR=${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}
-Dformat=${format}
-Dfonttype=${fonttype}
- -Dextension=${format}
+ -Dextension=${f_extension}
-Dfile=${f}
-Dinverted=${inverted}
-DTOP_SRC_DIR=${TOP_SRC_DIR}
diff --git a/development/autotests/export.cmake b/development/autotests/export.cmake
index 39ddd84..c776665 100755
--- a/development/autotests/export.cmake
+++ b/development/autotests/export.cmake
@@ -7,8 +7,8 @@
# LYX_ROOT = ${TOP_SRC_DIR}/lib/{doc,examples,templates,tabletemplates}
# LYX_USERDIR_VER = Name of environment variable for the user directory
# lyx =
-# format = lyx16x|lyx20x|lyx21x|lyx22x|xhtml
-# extension = 16.lyx|20.lyx|21.lyx|22.lyx|xhtml
+# format = lyx16x|lyx20x|lyx21x|lyx22x|xhtml|docbook5
+# extension = 16.lyx|20.lyx|21.lyx|22.lyx|xhtml|xml
# file = xxx
#
# Script should be called like:
More information about the lyx-cvs
mailing list