diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-07-31 15:26:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-07-31 15:41:13 +0300 |
commit | 81caec8c609891fea21d04bdfbecb3a0739bc06e (patch) | |
tree | 8edb7f076576a540c64036d394809f80cfa2ca07 /tests/gtests/runner/CMakeLists.txt | |
parent | 5628aaeee1b678c58c67afbbe7d91565f45618a0 (diff) |
Fix blender_test runner build on the buildbot on Linux and macOS
Add our own copy of the gtest discovery scripts from CMake a few reasons:
* Use the very latest version which supports PRE_TEST for Windows
* Fix usage of [] symbols in file paths that fail with the zsh shell
* Disable asan leak checker when discovering tests
This means Windows also no longer requires the very latest CMake 3.18.
Diffstat (limited to 'tests/gtests/runner/CMakeLists.txt')
-rw-r--r-- | tests/gtests/runner/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/gtests/runner/CMakeLists.txt b/tests/gtests/runner/CMakeLists.txt index 87cc124bda8..4153567ff42 100644 --- a/tests/gtests/runner/CMakeLists.txt +++ b/tests/gtests/runner/CMakeLists.txt @@ -75,10 +75,12 @@ unset(_test_libs) # This runs the blender_test executable with `--gtest_list_tests`, then # exposes those tests individually to the ctest runner. # See https://cmake.org/cmake/help/v3.18/module/GoogleTest.html -include(GoogleTest) +# +# We have our own modified copy of this CMake module. +include(GTest) set(_GOOGLETEST_DISCOVER_TESTS_SCRIPT - ${CMAKE_CURRENT_LIST_DIR}/BlenderAddTests.cmake + ${CMAKE_SOURCE_DIR}/build_files/cmake/Modules/GTestAddTests.cmake ) gtest_discover_tests(blender_test |