diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-23 18:56:03 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-23 18:56:03 +0300 |
commit | ae213d740da1416df229e06616c883d979cfd640 (patch) | |
tree | fa497c5433e8a5ec985514e872915c97484b87f1 /tests | |
parent | 433ecb88bdf2fbc51cfdc1758300324587790ba9 (diff) |
Don't add Cycles tests if tests folder does not exist
Also print message about those tests being disabled.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index 59d3aa11619..c366aad892f 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -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() |