]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/CMakeLists.txt
Add test for verbatim environment in tex2lyx tests
[lyx.git] / src / tex2lyx / test / CMakeLists.txt
1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
3 #
4 # Copyright (c) 2012 Kornel Benko, <kornel@lyx.org>
5 #
6
7 project(test)
8
9 #file(GLOB _tex_tests RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.ltx" "${CMAKE_CURRENT_SOURCE_DIR}/*.tex")
10 #
11 #list(REMOVE_ITEM _tex_tests DummyDocument.tex)
12
13 set(_tex_tests test.ltx test-structure.tex test-insets.tex
14                test-modules.tex box-color-size-space-align.tex
15                CJK.tex CJKutf8.tex XeTeX-polyglossia.tex
16                test-refstyle-references.tex verbatim.tex)
17
18 foreach(_fl ${_tex_tests})
19   set(fl ${_fl})
20   add_test(NAME tex2lyx/roundtrip/${_fl}
21     WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
22     COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py"
23     "$<TARGET_FILE:${_tex2lyx}>"
24     "${TOP_SRC_DIR}/lib/scripts"
25     "${CMAKE_CURRENT_BINARY_DIR}"
26     ${fl})
27   add_test(NAME tex2lyx2lyx/roundtrip/${_fl}
28     WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
29     COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py" "uselyx2lyx"
30     "$<TARGET_FILE:${_tex2lyx}>"
31     "${TOP_SRC_DIR}/lib/scripts"
32     "${CMAKE_CURRENT_BINARY_DIR}"
33     ${fl})
34 endforeach()
35
36 add_dependencies(lyx_run_tests ${_tex2lyx} ${_lyx})
37