X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fautotests%2FCMakeLists.txt;h=0ad195f71cf96dcbbb3d0bfd1143188aec084dd9;hb=50b570e05aef2ff4b2f7b0fb25acc0600fba6bdd;hp=b83ebfa92c2c231be79f7f7e7c7a1bf17735ecd3;hpb=7bc0a6f3880161f071c5f268cc392cd5b88594c6;p=lyx.git diff --git a/development/autotests/CMakeLists.txt b/development/autotests/CMakeLists.txt index b83ebfa92c..0ad195f71c 100644 --- a/development/autotests/CMakeLists.txt +++ b/development/autotests/CMakeLists.txt @@ -67,18 +67,30 @@ if(QT_USES_X11) message(STATUS "cmake build is therefore omitting keytests") endif() - if(NOT Missing) + if(Missing) + set(_runtest FALSE) + else() project(keytest) add_subdirectory(xvkbd) + set(_runtest TRUE) set(KEYTEST "${CMAKE_CURRENT_SOURCE_DIR}/keytest.py") file(GLOB TESTST RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*-in.txt") file(GLOB TESTSS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*-in.sh") - list(REMOVE_ITEM TESTST hello-world-in.txt first-time-in.txt) + set(_firsttxt first-time-in.txt hello-world-in.txt) + foreach(_f ${_firsttxt}) + list(FIND TESTST ${_f} _ff) + if(NOT _ff GREATER -1) + set(_runtest FALSE) + break() + endif() + endforeach() + list(REMOVE_ITEM TESTST ${_firsttxt}) list(SORT TESTST) - - foreach(_tf first-time-in.txt hello-world-in.txt ${TESTST}) + endif() + if(_runtest) + foreach(_tf ${_firsttxt} ${TESTST}) string(REGEX REPLACE "-in\\.(txt|sh)" "" _t ${_tf}) add_test(NAME keytest/${_t} WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}" @@ -102,5 +114,5 @@ if(QT_USES_X11) endif() if (LYX_ENABLE_EXPORT_TESTS) - include(ExportTests) + include(${TOP_SRC_DIR}/development/autotests/ExportTests.cmake) endif()