From 2b6f822badd407cf3780ec647f67fccfd94e52a4 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 13 Jul 2016 04:51:58 -0400 Subject: [PATCH] Add CMake flag for keytests and disable by default The keytests were previously enabled by default if the necessary dependencies were found. They require a GUI and mouse so can sometimes be annoying. Further, they are not currently reliable. They are thus now disabled by default. --- CMakeLists.txt | 1 + development/autotests/CMakeLists.txt | 2 +- lib/doc/Development.lyx | 13 ++++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74d0ac8952..48688dced3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,6 +139,7 @@ LYX_OPTION(INSTALL_PREFIX "Install path for LyX" OFF ALL) LYX_OPTION(BUNDLE "Build bundle (experimental) " OFF ALL) LYX_OPTION(ENABLE_URLTESTS "Enable for URL tests" OFF ALL) LYX_OPTION(ENABLE_EXPORT_TESTS "Enable for export tests" OFF ALL) +LYX_OPTION(ENABLE_KEYTESTS "Enable for keytests" OFF ALL) LYX_OPTION(ASAN "Use address sanitizer" OFF ALL) LYX_COMBO(USE_QT "Use Qt version as frontend" QT4 QT5) #LYX_OPTION(3RDPARTY_BUILD "Build 3rdparty libs" OFF ALL) diff --git a/development/autotests/CMakeLists.txt b/development/autotests/CMakeLists.txt index eca516b26c..485e9767ee 100644 --- a/development/autotests/CMakeLists.txt +++ b/development/autotests/CMakeLists.txt @@ -67,7 +67,7 @@ if(QT_USES_X11) message(STATUS "cmake build is therefore omitting keytests") endif() - if(Missing) + if(Missing OR NOT LYX_ENABLE_KEYTESTS) set(_runtest FALSE) else() project(keytest) diff --git a/lib/doc/Development.lyx b/lib/doc/Development.lyx index 3f0d490b9a..cb1570ced1 100644 --- a/lib/doc/Development.lyx +++ b/lib/doc/Development.lyx @@ -4732,7 +4732,18 @@ Keytests \end_layout \begin_layout Standard -Automated tests based on the "MonKey Testing" keytest program. +Automated tests based on the "MonKey Testing" keytest program are enabled + if the necessary dependencies are found and if the CMake flag +\begin_inset Flex Code +status collapsed + +\begin_layout Plain Layout +-DLYX_ENABLE_KEYTESTS=ON +\end_layout + +\end_inset + + is used. They are documented in the README document in \begin_inset Flex Code status collapsed