From 27b60bdd232ea5c56c6646db901ceee23003dab3 Mon Sep 17 00:00:00 2001 From: Stephen Roderick Date: Sat, 23 Apr 2011 08:30:19 -0400 Subject: [PATCH 5/5] cmake: Add option to set CTest timeout --- CMakeLists.txt | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64b23bc..e54f0fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,9 @@ ENDIF ( NOT CMAKE_BUILD_TYPE STREQUAL "None") ################################################### OPTION(ENABLE_TESTS "Turn on to enable the testing framework." ON) +SET(BUILD_TEST_TIMEOUT 1500 CACHE STRING "Global timeout on all tests (seconds).") IF(ENABLE_TESTS) + SET(DART_TESTING_TIMEOUT "${BUILD_TEST_TIMEOUT}" CACHE STRING "" FORCE) INCLUDE(CTest) ENABLE_TESTING() ENDIF() -- 1.7.4.4