diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-22 13:53:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-22 13:57:20 +0300 |
commit | cae72caa82714107909fbfeb1ebc09653dce0767 (patch) | |
tree | e41efb1ac156a6082b16ca87e96dee8ceb3b904f /tests/python/CMakeLists.txt | |
parent | 90f2febbf41ed6cd18b4606e956d6887cb8aba3e (diff) |
CTests: Add render tests for Cycles
The idea is to use the set of really small images from the lib folder
and run Cycles render on them comparing render output to reference
images in the tests repository.
For sure same thing could become more generic for BI or Freestyle
render engines.
Thanks Campbell for review and code tweaks!
Diffstat (limited to 'tests/python/CMakeLists.txt')
-rw-r--r-- | tests/python/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index 85c68693792..59d3aa11619 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -48,6 +48,7 @@ else() endif() # for testing with valgrind prefix: valgrind --track-origins=yes --error-limit=no +set(TEST_BLENDER_EXE_BARE ${TEST_BLENDER_EXE}) set(TEST_BLENDER_EXE ${TEST_BLENDER_EXE} --background -noaudio --factory-startup --env-system-scripts ${CMAKE_SOURCE_DIR}/release/scripts) @@ -358,3 +359,14 @@ add_test(export_fbx_all_objects ${TEST_BLENDER_EXE} --md5_source=${TEST_OUT_DIR}/export_fbx_all_objects.fbx --md5=b35eb2a9d0e73762ecae2278c25a38ac --md5_method=FILE ) + +if(WITH_CYCLES) + if(OPENIMAGEIO_IDIFF) + 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}" + ) + endif() +endif() |