From 7c0232e874193ddbf30d869974deb15a15e2ee4b Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Thu, 21 May 2015 00:18:45 -0400 Subject: [PATCH] Document updating tex2lyx tests when using CMake Since Kornel's commit at e2d41970, it is now possible to update the tex2lyx tests with CMake. Note that this is a case where a make target in the build directory can affect the source directory, which might not be advisable. --- lib/doc/Development.lyx | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/lib/doc/Development.lyx b/lib/doc/Development.lyx index f965d414ea..9a5512357b 100644 --- a/lib/doc/Development.lyx +++ b/lib/doc/Development.lyx @@ -749,7 +749,7 @@ g. if a tex2lyx bug was fixed, or a new feature was added. In these cases the stored references need to be updated. - To do so, call + To do so if using autotools, call \begin_inset Flex Code status collapsed @@ -759,28 +759,50 @@ make updatetests \end_inset - (autotools) -\begin_inset Note Note -status open + in the +\begin_inset Flex Code +status collapsed \begin_layout Plain Layout -FIXME: Add cmake command +src/tex2lyx \end_layout \end_inset - in the + subdirectory of the build directory. + If instead using CMake, call \begin_inset Flex Code status collapsed \begin_layout Plain Layout -src/tex2lyx +make updatetex2lyxtests \end_layout \end_inset - subfolder of the build directory. - For convenience, this command does also produce re-exported roundtrip .lyx.tex + in the build directory or in the +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +src/tex2lyx/test +\end_layout + +\end_inset + + subdirectory of the build directory +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Note that this is a case where a make target in the build directory can + affect the source directory, which might not be advisable. +\end_layout + +\end_inset + +. + For convenience, these commands also produce re-exported roundtrip .lyx.tex files. Please examine the changed output carefully before committing the changed files to the repository: Since the test machinery does not do a roundtrip -- 2.39.5