]> git.lyx.org Git - features.git/commitdiff
ctests: run URL tests at beginning
authorScott Kostyshak <skostysh@lyx.org>
Sun, 24 Dec 2017 01:41:16 +0000 (20:41 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 24 Dec 2017 06:06:35 +0000 (01:06 -0500)
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

index b445ab7b92fc2b20a3f17513b843f30feb0da90e..c3c05d4104eaa134c69410b6b81d19db469f6507 100644 (file)
@@ -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:")