|
|
|
|
@ -385,7 +385,9 @@ function(cc_test_run TARGET_NAME)
|
|
|
|
|
set_property(TEST ${TARGET_NAME} PROPERTY ENVIRONMENT FLAGS_init_allocated_mem=true)
|
|
|
|
|
set_property(TEST ${TARGET_NAME} PROPERTY ENVIRONMENT FLAGS_cudnn_deterministic=true)
|
|
|
|
|
# No unit test should exceed 2 minutes.
|
|
|
|
|
if (APPLE OR WIN32)
|
|
|
|
|
if (WIN32)
|
|
|
|
|
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 150)
|
|
|
|
|
elseif (APPLE)
|
|
|
|
|
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
|
|
|
|
|
else()
|
|
|
|
|
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 15)
|
|
|
|
|
@ -757,7 +759,9 @@ function(py_test TARGET_NAME)
|
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (APPLE OR WIN32)
|
|
|
|
|
if (WIN32)
|
|
|
|
|
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 150)
|
|
|
|
|
elseif (APPLE)
|
|
|
|
|
set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20)
|
|
|
|
|
else()
|
|
|
|
|
# No unit test should exceed 2 minutes in Linux.
|
|
|
|
|
|