Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHabib Gahbiche <zazizizou>2021-03-26 18:04:09 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-26 18:15:02 +0300
commit252c87b9e87242a85a644da25edc739cf247d322 (patch)
treea1066fb7b4b6a8904695e3ed42374c7e9f5d8070 /tests/python/CMakeLists.txt
parent39ecf90185bddfdd210d4d88af8cabcf6918e808 (diff)
Compositor automated testing
Added support for compositor tests. Compositor tests can be added, executed and viewed in a similar way to cycles and other render engines tests. Running test: `ctest -R compositor` Updating test: `BLENDER_TEST_UPDATE=1 ctest -R compositor` Viewing test results: typically saved under `build_folder/tests/compositor/report.html` Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6334
Diffstat (limited to 'tests/python/CMakeLists.txt')
-rw-r--r--tests/python/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt
index 969b748e973..92cebb7d274 100644
--- a/tests/python/CMakeLists.txt
+++ b/tests/python/CMakeLists.txt
@@ -713,6 +713,33 @@ if(WITH_CYCLES OR WITH_OPENGL_RENDER_TESTS)
endif()
endif()
+if(WITH_COMPOSITOR)
+ set(compositor_tests
+ color
+ converter
+ distort
+ filter
+ input
+ matte
+ output
+ vector
+
+ multiple_node_setups
+ )
+
+ foreach(comp_test ${compositor_tests})
+ add_python_test(
+ compositor_${comp_test}_test
+ ${CMAKE_CURRENT_LIST_DIR}/compositor_render_tests.py
+ -blender "${TEST_BLENDER_EXE}"
+ -testdir "${TEST_SRC_DIR}/compositor/${comp_test}"
+ -idiff "${OPENIMAGEIO_IDIFF}"
+ -outdir "${TEST_OUT_DIR}/compositor"
+ )
+ endforeach()
+
+endif()
+
if(WITH_OPENGL_DRAW_TESTS)
if(NOT OPENIMAGEIO_IDIFF)
MESSAGE(STATUS "Disabling OpenGL draw tests because OIIO idiff does not exist")