]> git.lyx.org Git - features.git/blobdiff - development/autotests/export.cmake
Cmake tests: Do not remove temporary data while debugging
[features.git] / development / autotests / export.cmake
index 384f389c391ed1b3d9e0857ee48541a718de57b7..d2a03565ff296b99239f0b4dce13dd34eed25511 100755 (executable)
@@ -300,7 +300,16 @@ if(inverted)
 else()
   string(COMPARE NOTEQUAL  ${_err} 0 _erg)
 endif()
-execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${TempDir}")
+
+if ($ENV{LYX_DEBUG_LATEX})
+  # Do not remove temporary files if one wants to examine them
+  # for example if setting the env-var LYX_DEBUG_LATEX
+  # This needs a remove all temp-dirs from time to time
+  # $ cd build-dir
+  # $ find autotests/out-home -name AbC_\* | xargs rm -rf
+else()
+  execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${TempDir}")
+endif()
 if(_TestResultMessage)
   message(STATUS "Msg Summary:")
   foreach(_l ${_TestResultMessage})