From 80181da866329ce2f202a7129a49fb02f38e3902 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 18 May 2023 13:38:37 -0400 Subject: Tests: Add option to control timeout of BootstrapTest --- Tests/CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index af4ac55..5ef77fd 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -3342,13 +3342,12 @@ if(BUILD_TESTING) ) list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/BootstrapTest") # This test will use all processors. - set_tests_properties(BootstrapTest PROPERTIES RUN_SERIAL 1) - - # provide more time for the bootstrap test - get_test_property(BootstrapTest TIMEOUT PREVIOUS_TIMEOUT) - if("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND) - set_tests_properties(BootstrapTest PROPERTIES TIMEOUT 5400) + set_property(TEST BootstrapTest PROPERTY RUN_SERIAL 1) + # This test may take a long time. + if(NOT DEFINED CMake_TEST_BOOTSTRAP_TIMEOUT) + set(CMake_TEST_BOOTSTRAP_TIMEOUT 5400) endif() + set_property(TEST BootstrapTest PROPERTY TIMEOUT "${CMake_TEST_BOOTSTRAP_TIMEOUT}") endif() if(CMAKE_Fortran_COMPILER) -- cgit v0.12