diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-01-11 13:29:30 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-01-11 13:29:30 +0300 |
commit | 54f8a5dd737388d89332f3074eba01edc9efa8c1 (patch) | |
tree | 5ed34e5235a250625130aeab7bdc4cbc5647071c /CMakeLists.txt | |
parent | 63cea2b793d0dd98b69cab156ba3be4dcf9f234a (diff) |
Tests: run suites instead of individual test cases
Group all tests of a test suite into a single test command invocation.
This reduces the number of invocations by `ctest` by an order of
magnitude.
Since rB56aa5b0d8c6b663, `bin/tests/blender_test` was run for every
individual test. Having over a 1000 tests made testing slower than
necessary. Individual tests can still be run if desired by invocation of
`bin/tests/blender_test --gtest_filter=suitename.testname`.
NOTE: For this commit to have an immediate effect, it may be necessary
to remove the `tests` and `Testing` directories and some CMake files
from your build directory and rebuild. Run `ctest -N` to see the list of
tests; there should be less than 200.
Reviewed By: sergey, LazyDodo, sebbas
Maniphest Tasks: T83222
Differential Revision: https://developer.blender.org/D9649
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a630f0ae63d..d00b89ef3ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1774,6 +1774,10 @@ elseif(WITH_CYCLES_STANDALONE) endif() #----------------------------------------------------------------------------- +# Testing +add_subdirectory(tests) + +#----------------------------------------------------------------------------- # Blender Application if(WITH_BLENDER) add_subdirectory(source/creator) @@ -1781,11 +1785,6 @@ endif() #----------------------------------------------------------------------------- -# Testing -add_subdirectory(tests) - - -#----------------------------------------------------------------------------- # Define 'heavy' submodules (for Ninja builder when using pools). setup_heavy_lib_pool() |