]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/CMakeLists.txt
Revert broken tex2lyx test reference update
[lyx.git] / src / tex2lyx / test / CMakeLists.txt
index 2b3ddb4dc006113ca6234c9a0aacede93e9fe8fb..c64e8eb01fe47695c08de7210e1d0dacfb5c5b0e 100644 (file)
@@ -10,19 +10,50 @@ project(test)
 #
 #list(REMOVE_ITEM _tex_tests DummyDocument.tex)
 
-set(_tex_tests test.ltx test-structure.tex test-insets.tex
-               test-modules.tex box-color-size-space-align.tex
-               CJK.tex XeTeX-polyglossia.tex)
+set(_tex_tests test.ltx
+               box-color-size-space-align.tex
+               CJK.tex
+               CJKutf8.tex
+               test-insets.tex
+               test-memoir.tex
+               test-modules.tex
+               test-refstyle-theorems.tex
+               test-scr.tex
+               test-structure.tex
+               verbatim.tex
+               XeTeX-polyglossia.tex
+               algo2e.tex)
 
 foreach(_fl ${_tex_tests})
   set(fl ${_fl})
   add_test(NAME tex2lyx/roundtrip/${_fl}
     WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
-    COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py"
-    "$<TARGET_FILE:${_tex2lyx}>"
-    "${TOP_SRC_DIR}/lib/scripts"
-    "${CMAKE_CURRENT_BINARY_DIR}"
-    ${fl})
+    COMMAND ${CMAKE_COMMAND}
+      -DLYX_TESTS_USERDIR=${LYX_TESTS_USERDIR}
+      -DLYX_USERDIR_VER=${LYX_USERDIR_VER}
+      -DLYX_PYTHON_EXECUTABLE=${LYX_PYTHON_EXECUTABLE}
+      -DPY_SCRIPT=${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py
+      -DTEX2LYX_EXE=$<TARGET_FILE:${_tex2lyx}>
+      -DSCRIPT_DIR=${TOP_SRC_DIR}/lib/scripts
+      -DWORKDIR=${CMAKE_CURRENT_BINARY_DIR}
+      -DTESTFILE=${fl}
+      -P ${TOP_SRC_DIR}/src/tex2lyx/test/runtests.cmake)
+  set_tests_properties(tex2lyx/roundtrip/${_fl} PROPERTIES RESOURCE_LOCK "runtests.lock" LABELS "roundtrip")
+  add_test(NAME tex2lyx/cmplyx/${_fl}
+    WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+    COMMAND ${CMAKE_COMMAND}
+      -DLYX_TESTS_USERDIR=${LYX_TESTS_USERDIR}
+      -DLYX_USERDIR_VER=${LYX_USERDIR_VER}
+      -DLYX_PYTHON_EXECUTABLE=${LYX_PYTHON_EXECUTABLE}
+      -DPY_SCRIPT=${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py
+      -DFIRST_PARAM=uselyx2lyx
+      -DTEX2LYX_EXE=$<TARGET_FILE:${_tex2lyx}>
+      -DSCRIPT_DIR=${TOP_SRC_DIR}/lib/scripts
+      -DWORKDIR=${CMAKE_CURRENT_BINARY_DIR}
+      -DTESTFILE=${fl}
+      -P ${TOP_SRC_DIR}/src/tex2lyx/test/runtests.cmake)
+  set_tests_properties(tex2lyx/cmplyx/${_fl} PROPERTIES RESOURCE_LOCK "runtests.lock" LABELS "cmplyx")
 endforeach()
 
+add_dependencies(lyx_run_tests ${_tex2lyx} ${_lyx})