diff options
-rw-r--r-- | tests/gtests/runner/BlenderAddTests.cmake | 3 | ||||
-rw-r--r-- | tests/gtests/runner/CMakeLists.txt | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/gtests/runner/BlenderAddTests.cmake b/tests/gtests/runner/BlenderAddTests.cmake new file mode 100644 index 00000000000..c4f5c8aba8a --- /dev/null +++ b/tests/gtests/runner/BlenderAddTests.cmake @@ -0,0 +1,3 @@ +# Disable ASAN leak detection when trying to discover tests. +set(ENV{ASAN_OPTIONS} "detect_leaks=0") +include(GoogleTestAddTests) diff --git a/tests/gtests/runner/CMakeLists.txt b/tests/gtests/runner/CMakeLists.txt index 7f28ede9ae9..4da0bce09a4 100644 --- a/tests/gtests/runner/CMakeLists.txt +++ b/tests/gtests/runner/CMakeLists.txt @@ -60,6 +60,11 @@ setup_liblinks(blender_test) # exposes those tests individually to the ctest runner. # See https://cmake.org/cmake/help/v3.18/module/GoogleTest.html include(GoogleTest) + +set(_GOOGLETEST_DISCOVER_TESTS_SCRIPT + ${CMAKE_CURRENT_LIST_DIR}/BlenderAddTests.cmake +) + gtest_discover_tests(blender_test # So that unit tests know where to find files: EXTRA_ARGS |