Tests: Properly disable tests when data directory is missing

And clean up cmake output to be less verbose.
This commit is contained in:
Brecht Van Lommel
2025-04-06 13:52:15 +02:00
parent ea13b19738
commit 4970bac061
3 changed files with 728 additions and 746 deletions

View File

@@ -139,6 +139,9 @@ function(blender_add_ctests)
if(ARGC LESS 1)
message(FATAL_ERROR "No arguments supplied to blender_add_ctests()")
endif()
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/tests/data/render")
return()
endif()
# Parse the arguments
set(oneValueArgs DISCOVER_TESTS TARGET SUITE_NAME)