The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit e77c0dfcf35f9aea67dd4f0f2422f4527ac9e188
Author: Scott Kostyshak <skost...@lyx.org>
Date:   Sun Jan 27 05:29:50 2013 -0500

    CMake: tests can now use an existing .lyx file
    
    To reproduce some bugs, tests need to open an existing LyX file. This
    is now possible with CMake and is consistent with testing under
    autotools in the sense that the .lyx file is referred to in the test
    by being in the parent directory.
    
    If the test is named bug-XXXX-in.txt and there exists a file
    bug-XXXX.lyx, that file will be copied to the parent directory of
    out-home in the build directory.

diff --git a/development/autotests/single-test.cmake 
b/development/autotests/single-test.cmake
index 15452a6..89a6fdd 100755
--- a/development/autotests/single-test.cmake
+++ b/development/autotests/single-test.cmake
@@ -73,6 +73,10 @@ if(_testfiles)
   execute_process(
   COMMAND ${CMAKE_COMMAND} -E remove -f ${_testfiles} )
 endif()
+string(REGEX REPLACE "-in\\.(txt|sh)$" "" _jj ${KEYTEST_INFILE})
+if(EXISTS "${AUTOTEST_ROOT}/${_jj}.lyx")
+  configure_file("${AUTOTEST_ROOT}/${_jj}.lyx" "${WORKDIR}/../${_jj}.lyx" 
COPYONLY)
+endif()
 execute_process(
   COMMAND python ${KEYTEST}
   RESULT_VARIABLE KEYTEST_RES)

-----------------------------------------------------------------------

Summary of changes:
 development/autotests/single-test.cmake |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to