diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-06 20:46:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-06 21:10:08 +0300 |
commit | fb3e138ceedab82bc7c743c8cb4790fbadbb9986 (patch) | |
tree | e6ce43ca3ac46d057ec7a4f7545c084aca7a84c9 /tests/python/CMakeLists.txt | |
parent | 51f222f91d94130090cfa355bc1e17b21c1d448f (diff) |
Tests: add Eevee reference images, and add workbench tests
Being able to compare Eevee reference images is useful for refactoring I'm
working on so might as well add them now, even if we can still improve them.
Workbench tests are just rendering the same files as Cycles and Eevee. This
doesn't really tests many workbench settings until we add tests specifically
for them, but does cover how it it handles the different object types.
Diffstat (limited to 'tests/python/CMakeLists.txt')
-rw-r--r-- | tests/python/CMakeLists.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index 2d9fe8c4f37..28bdd48229e 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -528,14 +528,14 @@ function(add_python_test testname testscript) endif() endfunction() -if(OPENIMAGEIO_IDIFF AND EXISTS "${TEST_SRC_DIR}/render/ctests/shader") +if(OPENIMAGEIO_IDIFF AND EXISTS "${TEST_SRC_DIR}/render/shader") macro(add_cycles_render_test subject) if(WITH_CYCLES) add_python_test( cycles_${subject} ${CMAKE_CURRENT_LIST_DIR}/cycles_render_tests.py -blender "$<TARGET_FILE:blender>" - -testdir "${TEST_SRC_DIR}/render/ctests/${subject}" + -testdir "${TEST_SRC_DIR}/render/${subject}" -idiff "${OPENIMAGEIO_IDIFF}" -outdir "${TEST_OUT_DIR}/cycles" ) @@ -546,10 +546,19 @@ if(OPENIMAGEIO_IDIFF AND EXISTS "${TEST_SRC_DIR}/render/ctests/shader") eevee_${subject}_test ${CMAKE_CURRENT_LIST_DIR}/eevee_render_tests.py -blender "$<TARGET_FILE:blender>" - -testdir "${TEST_SRC_DIR}/render/ctests/${subject}" + -testdir "${TEST_SRC_DIR}/render/${subject}" -idiff "${OPENIMAGEIO_IDIFF}" -outdir "${TEST_OUT_DIR}/eevee" ) + + add_python_test( + workbench_${subject}_test + ${CMAKE_CURRENT_LIST_DIR}/workbench_render_tests.py + -blender "$<TARGET_FILE:blender>" + -testdir "${TEST_SRC_DIR}/render/${subject}" + -idiff "${OPENIMAGEIO_IDIFF}" + -outdir "${TEST_OUT_DIR}/workbench" + ) endif() endmacro() add_cycles_render_test(bake) |