Cmake export tests: Handle some lyx2lyx warnings

This commit is contained in:
Kornel Benko 2015-12-25 19:02:06 +01:00
parent c76d91bb47
commit ec32831cb0
3 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -1,2 +1,3 @@
Cannot find translation for language
Warning: Lyx2lyx knows nothing about (textclass|module)
LyX: Done

View File

@ -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]