]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: allow setting of the CTest timeout during building. 22800/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 2 Jul 2018 20:40:38 +0000 (22:40 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Mon, 29 Oct 2018 22:16:33 +0000 (23:16 +0100)
It is rather had to overide a once set timeout during CTesting.
This is the best next compromise. Disadvantage is that a rebuild
is required.
But it helps in my Jenkins testing timely catching run-away programs.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
CMakeLists.txt
cmake/modules/AddCephTest.cmake

index 0af69b440de1b70a1d16841a89fa5c827c50e122..2cd8ab9e5dc9617ca5ce4b0a39b7d2f7a023082a 100644 (file)
@@ -560,6 +560,8 @@ option(ENABLE_COVERAGE "Coverage is enabled" OFF)
 option(PG_DEBUG_REFS "PG Ref debugging is enabled" OFF)
 
 option(WITH_TESTS "enable the build of ceph-test package scripts/binaries" ON)
+set(CEPH_TEST_TIMEOUT 3600 CACHE STRING 
+  "Maximum time before a CTest gets killed" )
 
 # fio
 option(WITH_FIO "build with fio plugin enabled" OFF)
index 4ca83eabba00e6c1de4328600d1491fa1371f80b..2a15c88ab53fb155dd301192c06ff0babf87d4af 100644 (file)
@@ -20,7 +20,7 @@ function(add_ceph_test test_name test_path)
   # none of the tests should take more than 1 hour to complete
   set_property(TEST
     ${test_name}
-    PROPERTY TIMEOUT 3600)
+    PROPERTY TIMEOUT ${CEPH_TEST_TIMEOUT})
 endfunction()
 
 option(WITH_GTEST_PARALLEL "Enable running gtest based tests in parallel" OFF)