]> git.lyx.org Git - features.git/commitdiff
Cmake export tests: Introduce 'LYX_DEBUG_LATEX' environment variable.
authorKornel Benko <kornel@lyx.org>
Wed, 12 Oct 2016 12:35:23 +0000 (14:35 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 12 Oct 2016 12:35:23 +0000 (14:35 +0200)
Setting this variable to '1' will include also latex messages in
ctest log file LastTest.log.

development/autotests/export.cmake
lib/doc/Development.lyx

index 09e7ec75aa985d8c416d73a63a47839387d8f1aa..fea5e25fe195bd41579a7bb7a523eebae33bf9be 100755 (executable)
@@ -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
index 5ce29c4e3eafdd64decf4858d25aea503cd8b9ea..6deb3d7575780b65301f7086186954e7b9525b49 100644 (file)
@@ -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