mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
Tests: Add option to control timeout of BootstrapTest
This commit is contained in:
@@ -3342,13 +3342,12 @@ if(BUILD_TESTING)
|
|||||||
)
|
)
|
||||||
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/BootstrapTest")
|
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/BootstrapTest")
|
||||||
# This test will use all processors.
|
# This test will use all processors.
|
||||||
set_tests_properties(BootstrapTest PROPERTIES RUN_SERIAL 1)
|
set_property(TEST BootstrapTest PROPERTY RUN_SERIAL 1)
|
||||||
|
# This test may take a long time.
|
||||||
# provide more time for the bootstrap test
|
if(NOT DEFINED CMake_TEST_BOOTSTRAP_TIMEOUT)
|
||||||
get_test_property(BootstrapTest TIMEOUT PREVIOUS_TIMEOUT)
|
set(CMake_TEST_BOOTSTRAP_TIMEOUT 5400)
|
||||||
if("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
|
|
||||||
set_tests_properties(BootstrapTest PROPERTIES TIMEOUT 5400)
|
|
||||||
endif()
|
endif()
|
||||||
|
set_property(TEST BootstrapTest PROPERTY TIMEOUT "${CMake_TEST_BOOTSTRAP_TIMEOUT}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_Fortran_COMPILER)
|
if(CMAKE_Fortran_COMPILER)
|
||||||
|
|||||||
Reference in New Issue
Block a user