Add a parameter to enable/disable valgrind for ctest.
This commit is contained in:
parent
dd8ba6f08b
commit
fe53b5e7a7
|
@ -61,6 +61,9 @@ function(add_fdb_test)
|
|||
set(this_test_timeout ${ADD_FDB_TEST_TIMEOUT})
|
||||
if(NOT this_test_timeout)
|
||||
set(this_test_timeout 3600)
|
||||
if(USE_VALGRIND_FOR_CTEST)
|
||||
set(this_test_timeout 36000)
|
||||
endif()
|
||||
endif()
|
||||
set(test_type "simulation")
|
||||
set(fdb_test_files_ "${fdb_test_files}")
|
||||
|
@ -107,7 +110,7 @@ function(add_fdb_test)
|
|||
set(BUGGIFY_OPTION "-B")
|
||||
endif()
|
||||
set(VALGRIND_OPTION "")
|
||||
if (USE_VALGRIND)
|
||||
if (USE_VALGRIND_FOR_CTEST)
|
||||
set(VALGRIND_OPTION "--use-valgrind")
|
||||
endif()
|
||||
list(TRANSFORM ADD_FDB_TEST_TEST_FILES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set(USE_GPERFTOOLS OFF CACHE BOOL "Use gperfools for profiling")
|
||||
set(USE_VALGRIND OFF CACHE BOOL "Compile for valgrind usage")
|
||||
set(USE_VALGRIND_FOR_CTEST ${USE_VALGRIND} CACHE BOOL "Use valgrind for ctest")
|
||||
set(ALLOC_INSTRUMENTATION OFF CACHE BOOL "Instrument alloc")
|
||||
set(WITH_UNDODB OFF CACHE BOOL "Use rr or undodb")
|
||||
set(USE_ASAN OFF CACHE BOOL "Compile with address sanitizer")
|
||||
|
|
Loading…
Reference in New Issue