mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Don't add Cycles tests if tests folder does not exist
Also print message about those tests being disabled.
This commit is contained in:
parent
433ecb88bd
commit
ae213d740d
1 changed files with 3 additions and 1 deletions
|
|
@ -361,12 +361,14 @@ add_test(export_fbx_all_objects ${TEST_BLENDER_EXE}
|
|||
)
|
||||
|
||||
if(WITH_CYCLES)
|
||||
if(OPENIMAGEIO_IDIFF)
|
||||
if(OPENIMAGEIO_IDIFF AND EXISTS "${TEST_SRC_DIR}/cycles/ctests/shader")
|
||||
add_test(cycles_shaders_test
|
||||
${CMAKE_CURRENT_LIST_DIR}/cycles_render_tests.py
|
||||
-blender "${TEST_BLENDER_EXE_BARE}"
|
||||
-testdir "${TEST_SRC_DIR}/cycles/ctests/shader"
|
||||
-idiff "${OPENIMAGEIO_IDIFF}"
|
||||
)
|
||||
else()
|
||||
MESSAGE(STATUS "Disabling Cycles tests because tests folder does not exist")
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue