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
path: root/tests
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-10-11 16:02:40 +0300
committerSergey Sharybin <sergey@blender.org>2022-10-11 16:03:09 +0300
commit223ba59cb0055dc05beb9e13349e76de626d00cb (patch)
tree106ac54108aa22e79393abbf0fcc797eab45f54a /tests
parentc4255992163da64e3fab7b8fe196cb119dffccc2 (diff)
Beginning of automated SVG regression test
This commit contains the CTest integration. Starting with the very simple tests for the recent fixes in the io_corve_svg addon which were related on closing path. The idea is to use same framework as what we use for render tests to make it easily visible what aspect of SVG changed or broke. In order to achieve this both .blend and .svg files are used. The .svg file defines the exact subject of test, and the .blend file defines camera, and possibly material. The longer term idea is to have a number of atomic tests for a specific SVG features to help isolating problematic areas, as well as a more comprehensive tests to perform QA.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt
index fe00cce2572..b3decc06161 100644
--- a/tests/python/CMakeLists.txt
+++ b/tests/python/CMakeLists.txt
@@ -630,6 +630,24 @@ add_blender_test(
)
endif()
+# SVG Import
+if(True)
+ set(_svg_render_tests path)
+
+ foreach(render_test ${_svg_render_tests})
+ add_python_test(
+ io_curve_svg_${render_test}
+ ${CMAKE_CURRENT_LIST_DIR}/bl_io_curve_svg_test.py
+ -blender "${TEST_BLENDER_EXE}"
+ -testdir "${TEST_SRC_DIR}/io_tests/svg/${render_test}"
+ -idiff "${OPENIMAGEIO_IDIFF}"
+ -outdir "${TEST_OUT_DIR}/io_curve_svg"
+ )
+ endforeach()
+
+ unset(_svg_render_tests)
+endif()
+
if(WITH_CYCLES OR WITH_OPENGL_RENDER_TESTS)
if(NOT OPENIMAGEIO_IDIFF)
message(WARNING "Disabling render tests because OIIO idiff does not exist")