From 90adb4f3146522cf0d3dfe8ac3400eb688515c05 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Wed, 12 Oct 2016 14:35:23 +0200 Subject: [PATCH] Cmake export tests: Introduce 'LYX_DEBUG_LATEX' environment variable. Setting this variable to '1' will include also latex messages in ctest log file LastTest.log. --- development/autotests/export.cmake | 9 +++++++-- lib/doc/Development.lyx | 17 +++++++++++++---- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/development/autotests/export.cmake b/development/autotests/export.cmake index 09e7ec75aa..fea5e25fe1 100755 --- a/development/autotests/export.cmake +++ b/development/autotests/export.cmake @@ -126,10 +126,15 @@ if (extension MATCHES "\\.lyx$") set(LYX_SOURCE ${result_file_name}) endforeach() else() - message(STATUS "Executing ${lyx} -userdir \"${LYX_TESTS_USERDIR}\" -E ${format} ${result_file_name} \"${LYX_SOURCE}\"") + if ($ENV{LYX_DEBUG_LATEX}) + set(LatexDebugParam -dbg latex) + else() + set(LatexDebugParam) + endif() + message(STATUS "Executing ${lyx} ${LatexDebugParam} -userdir \"${LYX_TESTS_USERDIR}\" -E ${format} ${result_file_name} \"${LYX_SOURCE}\"") file(REMOVE ${result_file_name}) execute_process( - COMMAND ${lyx} -userdir "${LYX_TESTS_USERDIR}" -E ${format} ${result_file_name} "${LYX_SOURCE}" + COMMAND ${lyx} ${LatexDebugParam} -userdir "${LYX_TESTS_USERDIR}" -E ${format} ${result_file_name} "${LYX_SOURCE}" RESULT_VARIABLE _err) #check if result file created diff --git a/lib/doc/Development.lyx b/lib/doc/Development.lyx index 5ce29c4e3e..6deb3d7575 100644 --- a/lib/doc/Development.lyx +++ b/lib/doc/Development.lyx @@ -1,5 +1,5 @@ -#LyX 2.2 created this file. For more info see http://www.lyx.org/ -\lyxformat 508 +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 512 \begin_document \begin_header \save_transient_properties true @@ -25,6 +25,7 @@ logicalmkup \font_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 +\use_microtype false \graphics default \default_output_format pdf2 \output_sync 1 @@ -3401,9 +3402,17 @@ unreliable:nonstandard \begin_inset Quotes erd \end_inset - or testing on a system withonly a subset of TeXLive installed), ignore + or testing on a system with only a subset of TeXLive installed), ignore the failure, ask for someone else to run the test, or install the missing - ressources and try again. + resources and try again. +\end_layout + +\begin_layout Itemize +Check the log file Testing/Temporary/LastTest.log. + In case of latex-errors rerun the failing test with environment variable + 'LAX_DEBUG_LATEX' set to '1'. + This will include latex messages in LastTest.log, so it should be easier + to interpret the fail-reason. \end_layout \begin_layout Paragraph