diff options
author | Chris Wilson <chris+github@qwirx.com> | 2016-09-10 10:15:32 +0100 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2016-09-10 10:15:32 +0100 |
commit | 353aeedcae698a7b7108846d99da72666a45d043 (patch) | |
tree | 5b8ab47c72ead2cc0729f72c865613462515da06 /infrastructure/cmake | |
parent | 7de9857420507b192f3628c567c61f4e9b849bed (diff) |
Set test timeouts for CMake tests.
Should avoid infinite test hangs, especially on Appveyor, where a bad compile
(mixed runtimes) or an abort can popup an error message at runtime which hangs
the test forever.
Diffstat (limited to 'infrastructure/cmake')
-rw-r--r-- | infrastructure/cmake/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/infrastructure/cmake/CMakeLists.txt b/infrastructure/cmake/CMakeLists.txt index db919939..d4884875 100644 --- a/infrastructure/cmake/CMakeLists.txt +++ b/infrastructure/cmake/CMakeLists.txt @@ -670,3 +670,19 @@ endif(MSVC) file(TO_NATIVE_PATH "${PERL_EXECUTABLE}" perl_executable_native) string(REPLACE "\\" "\\\\" perl_path_escaped ${perl_executable_native}) target_compile_definitions(test_backupstorefix PRIVATE -DPERL_EXECUTABLE="${perl_path_escaped}") + +# Configure test timeouts: +# I've set the timeout to 4 times as long as it took to run on a particular run on Appveyor: +# https://ci.appveyor.com/project/qris/boxbackup/build/job/xm10itascygtu93j +set_tests_properties(common PROPERTIES TIMEOUT 20) +set_tests_properties(crypto PROPERTIES TIMEOUT 4) +set_tests_properties(compress PROPERTIES TIMEOUT 80) +set_tests_properties(raidfile PROPERTIES TIMEOUT 32) +set_tests_properties(basicserver PROPERTIES TIMEOUT 80) +set_tests_properties(backupstore PROPERTIES TIMEOUT 560) +set_tests_properties(backupstorefix PROPERTIES TIMEOUT 300) +set_tests_properties(backupstorepatch PROPERTIES TIMEOUT 320) +set_tests_properties(backupdiff PROPERTIES TIMEOUT 32) +set_tests_properties(bbackupd PROPERTIES TIMEOUT 1200) +set_tests_properties(s3store PROPERTIES TIMEOUT 20) +set_tests_properties(httpserver PROPERTIES TIMEOUT 40) |