From: Scott Kostyshak Date: Sun, 24 Dec 2017 01:41:16 +0000 (-0500) Subject: ctests: run URL tests at beginning X-Git-Tag: 2.3.0rc2~124 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5137bfa94b9f1c3905f1a32090045be3d03ff187;p=features.git ctests: run URL tests at beginning The URL tests can take a long time to complete. By running them at the beginning, time can be saved when running the ctests in parallel. This saves around 10 minutes for me. (cherry picked from commit c9817a4fb5a85fea175659b2fe1f0ab394f81c1e) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b445ab7b92..c3c05d4104 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1041,15 +1041,17 @@ if(LYX_INSTALL) endif() include(../Install) +# By running the URL tests first, time can be saved when running the ctests in +# parallel since the URL tests take a long time to run (e.g. 10 minutes). +if(LYX_ENABLE_URLTESTS) + add_subdirectory(development/checkurls "${TOP_BINARY_DIR}/checkurls") +endif() add_subdirectory(src "${TOP_BINARY_DIR}/src") add_subdirectory(lib/lyx2lyx "${TOP_BINARY_DIR}/lyx2lyx") add_subdirectory(lib/scripts "${TOP_BINARY_DIR}/scripts") add_subdirectory(lib/examples "${TOP_BINARY_DIR}/lib/examples") add_subdirectory(sourcedoc "${TOP_BINARY_DIR}/sourcedoc") add_subdirectory(development/autotests "${TOP_BINARY_DIR}/autotests") -if(LYX_ENABLE_URLTESTS) - add_subdirectory(development/checkurls "${TOP_BINARY_DIR}/checkurls") -endif() message(STATUS) message(STATUS "Build params, switch LYX_* options by -DLYX_*=ON or OFF, LYX_* combos by -DLYX_*=value:")