Am Samstag, 16. Mai 2015 um 10:43:04, schrieb Georg Baum <georg.b...@post.rwth-aachen.de> > To make it very clear: The automatic update is _not_ meant to be run by > default for any build or test target. It is not meant either to be run > without looking at the results. Manual verification is still required (see > my workflow above). >
Thanks, this was already clear. It was simply too easy to make mistakes. I created a patch for cmake. The target is named 'updatetex2lyxtests'. But using this target leads to plenty new .lyx.tex files left in the source dir. They are not part of the repository. Kornel
signature.asc
Description: This is a digitally signed message part.
diff --git a/src/tex2lyx/test/CMakeLists.txt b/src/tex2lyx/test/CMakeLists.txt index c64e8eb..9c7279d 100644 --- a/src/tex2lyx/test/CMakeLists.txt +++ b/src/tex2lyx/test/CMakeLists.txt @@ -57,3 +57,13 @@ endforeach() add_dependencies(lyx_run_tests ${_tex2lyx} ${_lyx}) +add_custom_command( + OUTPUT LyxTestFiles + COMMAND ${CMAKE_COMMAND} -E touch LyxTestFiles + COMMAND env LYX_USERDIR_VER=${LYX_USERDIR_VER} + ${LYX_PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/runtests.py" $<TARGET_FILE:${_tex2lyx}> "${TOP_SRC_DIR}/lib/scripts" "${CMAKE_CURRENT_SOURCE_DIR}" + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" + DEPENDS ${_tex2lyx} +) + +add_custom_target(updatetex2lyxtests DEPENDS LyxTestFiles)