]> git.lyx.org Git - lyx.git/blobdiff - src/tests/CMakeLists.txt
ar.po and layouttranslations: updates from hatim
[lyx.git] / src / tests / CMakeLists.txt
index daf4a06174dc45c3f432820357828e1413c999c7..8b0c6d5180669d2ae32ea2f18b87d43c103a35bc 100644 (file)
@@ -5,10 +5,10 @@
 #
 
 set(check_layout_SOURCES)
-foreach(_f insets/InsetLayout.cpp Color.cpp Counters.cpp Floating.cpp
+foreach(_f insets/InsetLayout.cpp CiteEnginesList.cpp Color.cpp Counters.cpp Floating.cpp
        FloatList.cpp FontInfo.cpp Layout.cpp LayoutFile.cpp Lexer.cpp
        ModuleList.cpp Spacing.cpp TextClass.cpp tests/check_layout.cpp
-       tests/boost.cpp tests/dummy_functions.cpp)
+       tests/boost.cpp support/tests/dummy_functions.cpp)
   list(APPEND check_layout_SOURCES "${TOP_SRC_DIR}/src/${_f}")
 endforeach()
 
@@ -38,10 +38,18 @@ foreach(bns ${layout_files} ${module_files})
   if("${_checktype}" STREQUAL "module")
     file(WRITE "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" "#% Do not delete the line below; configure depends on this\n")
     file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" "#  \\DeclareLaTeXClass{test${bn}}\n")
-    file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" "Format 55\n")
+    file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" "Format 63\n")
+    file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" "Style Standard\n")
+    file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" " LabelType No_Label\n")
+    file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" " Category MainText\n")
+    file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" "End\n")
     file(APPEND "${LYX_TESTS_USERDIR}/layouts/test${bn}.layout" "Input ${bns}\n")
     add_test(NAME "check_layout/${bns}"
-      COMMAND $<TARGET_FILE:check_layout> "${LYX_TESTS_USERDIR}/layouts/test${bn}" "${CMAKE_CURRENT_BINARY_DIR}/${bn}.out${_checktype}")
+      COMMAND ${CMAKE_COMMAND}
+       "-DCheckLayout=$<TARGET_FILE:check_layout>"
+       "-DModule=${LYX_TESTS_USERDIR}/layouts/test${bn}"
+       "-DOutput=${CMAKE_CURRENT_BINARY_DIR}/${bn}.out${_checktype}"
+       -P "${TOP_SRC_DIR}/src/tests/check_layout.cmake")
     set_tests_properties("check_layout/${bns}" PROPERTIES ENVIRONMENT ${LYX_USERDIR_VER}=${LYX_TESTS_USERDIR})
   else()
     add_test(NAME "check_layout/${bns}"
@@ -53,7 +61,7 @@ endforeach()
 set(check_ExternalTransforms_SOURCES)
 foreach(_f graphics/GraphicsParams.cpp insets/ExternalTransforms.cpp
        Length.cpp lengthcommon.cpp tests/check_ExternalTransforms.cpp
-       tests/boost.cpp tests/dummy_functions.cpp)
+       tests/boost.cpp support/tests/dummy_functions.cpp)
     list(APPEND check_ExternalTransforms_SOURCES ${TOP_SRC_DIR}/src/${_f})
 endforeach()
 
@@ -75,16 +83,8 @@ add_test(NAME "check_ExternalTransforms"
        -P "${TOP_SRC_DIR}/src/support/tests/supporttest.cmake")
 add_dependencies(lyx_run_tests check_ExternalTransforms)
 
-set(check_ExternalTransforms_SOURCES)
-foreach(_f graphics/GraphicsParams.cpp insets/ExternalTransforms.cpp
-       Length.cpp lengthcommon.cpp tests/check_ExternalTransforms.cpp
-       tests/boost.cpp tests/dummy_functions.cpp)
-    list(APPEND check_ExternalTransforms_SOURCES ${TOP_SRC_DIR}/src/${_f})
-endforeach()
-
-include_directories(${TOP_SRC_DIR}/src/tests)
 set(check_Length_SOURCES)
-foreach(_f Length.cpp lengthcommon.cpp tests/check_Length.cpp tests/boost.cpp tests/dummy_functions.cpp)
+foreach(_f Length.cpp lengthcommon.cpp tests/check_Length.cpp tests/boost.cpp support/tests/dummy_functions.cpp)
   list(APPEND check_Length_SOURCES ${TOP_SRC_DIR}/src/${_f})
 endforeach()
 add_executable(check_Length ${check_Length_SOURCES})
@@ -106,7 +106,7 @@ add_dependencies(lyx_run_tests check_Length)
 
 include_directories(${TOP_SRC_DIR}/src/tests)
 set(check_ListingsCaption_SOURCES)
-foreach(_f tests/check_ListingsCaption.cpp tests/boost.cpp tests/dummy_functions.cpp)
+foreach(_f tests/check_ListingsCaption.cpp tests/boost.cpp support/tests/dummy_functions.cpp)
   list(APPEND check_ListingsCaption_SOURCES ${TOP_SRC_DIR}/src/${_f})
 endforeach()
 add_executable(check_ListingsCaption ${check_ListingsCaption_SOURCES})