From 5137bfa94b9f1c3905f1a32090045be3d03ff187 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 23 Dec 2017 20:41:16 -0500 Subject: [PATCH] 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) --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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:") -- 2.39.5