[Bf-blender-cvs] [223ba59cb00] master: Beginning of automated SVG regression test

Sergey Sharybin noreply at git.blender.org
Tue Oct 11 15:03:15 CEST 2022


Commit: 223ba59cb0055dc05beb9e13349e76de626d00cb
Author: Sergey Sharybin
Date:   Tue Oct 11 15:02:40 2022 +0200
Branches: master
https://developer.blender.org/rB223ba59cb0055dc05beb9e13349e76de626d00cb

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.

===================================================================

M	tests/python/CMakeLists.txt

===================================================================

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")



More information about the Bf-blender-cvs mailing list