Changeset View
Changeset View
Standalone View
Standalone View
build_files/cmake/Modules/GTestTesting.cmake
| Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | if(NOT ARG_SKIP_ADD_TEST) | ||||
| add_test( | add_test( | ||||
| NAME ${TARGET_NAME} | NAME ${TARGET_NAME} | ||||
| COMMAND ${TESTS_OUTPUT_DIR}/${TARGET_NAME} ${ARG_COMMAND_ARGS} | COMMAND ${TESTS_OUTPUT_DIR}/${TARGET_NAME} ${ARG_COMMAND_ARGS} | ||||
| WORKING_DIRECTORY ${TEST_INSTALL_DIR}) | WORKING_DIRECTORY ${TEST_INSTALL_DIR}) | ||||
| # Don't fail tests on leaks since these often happen in external libraries | # Don't fail tests on leaks since these often happen in external libraries | ||||
| # that we can't fix. | # that we can't fix. | ||||
| set_tests_properties(${TARGET_NAME} PROPERTIES | set_tests_properties(${TARGET_NAME} PROPERTIES | ||||
| ENVIRONMENT LSAN_OPTIONS=exitcode=0:$ENV{LSAN_OPTIONS} | "ENVIRONMENT LSAN_OPTIONS=exitcode=0:$ENV{LSAN_OPTIONS};LLVM_PROFILE_FILE=${LLVM_PROFILE_FILE}" | ||||
| ) | ) | ||||
| endif() | endif() | ||||
| if(WIN32) | if(WIN32) | ||||
| set_target_properties(${TARGET_NAME} PROPERTIES VS_GLOBAL_VcpkgEnabled "false") | set_target_properties(${TARGET_NAME} PROPERTIES VS_GLOBAL_VcpkgEnabled "false") | ||||
| unset(MANIFEST) | unset(MANIFEST) | ||||
| endif() | endif() | ||||
| unset(TEST_INC) | unset(TEST_INC) | ||||
| unset(TEST_INC_SYS) | unset(TEST_INC_SYS) | ||||
| Show All 25 Lines | |||||