mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Cmake export tests: Handle some lyx2lyx warnings
This commit is contained in:
parent
c76d91bb47
commit
ec32831cb0
@ -45,15 +45,17 @@ if(format MATCHES "dvi|pdf")
|
||||
if(NOT _erg)
|
||||
message(FATAL_ERROR "Export failed while converting")
|
||||
endif()
|
||||
set(result_file_name ${file}_${_ft}.${extension})
|
||||
else()
|
||||
message(STATUS "Not converting")
|
||||
set(LYX_SOURCE "${LYX_ROOT}/${file}.lyx")
|
||||
# Font-type not relevant for lyx16/lyx21 exports
|
||||
set(result_file_name ${file}.${extension})
|
||||
endif()
|
||||
|
||||
set(result_file_name ${file}_${_ft}.${extension})
|
||||
message(STATUS "Executing ${lyx} -userdir \"${LYX_TESTS_USERDIR}\" -E ${format} ${result_file_name} \"${LYX_SOURCE}\"")
|
||||
set(ENV{${LYX_USERDIR_VER}} "${LYX_TESTS_USERDIR}")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E remove ${result_file_name})
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E remove ${result_file_name} ${result_file_name}.emergency)
|
||||
execute_process(
|
||||
COMMAND ${lyx} -userdir "${LYX_TESTS_USERDIR}" -E ${format} ${result_file_name} "${LYX_SOURCE}"
|
||||
RESULT_VARIABLE _err)
|
||||
|
@ -1,2 +1,3 @@
|
||||
Cannot find translation for language
|
||||
Warning: Lyx2lyx knows nothing about (textclass|module)
|
||||
LyX: Done
|
||||
|
@ -24,3 +24,7 @@ export/.*/ja/.*_(pdf[245]|dvi3).*
|
||||
# These files are not expected to compile, they use math-macros
|
||||
# defined in master 'autotests/mathmacros/masterOfSpace.lyx'
|
||||
export/mathmacros/Spacechild[123].*
|
||||
|
||||
# These files are subdocuments, they are not expected to behave
|
||||
export/examples/springer/svmono_(acknow|acronym|appendix|chapter|dedication|foreword|glossary|part|preface|referenc|solutions)_lyx[0-9][0-9]
|
||||
export/examples/springer/svmult_(acknow|acronym|appendix|cblist|dedication|foreword|glossary|part|preface|referenc)_lyx[0-9][0-9]
|
||||
|
Loading…
Reference in New Issue
Block a user