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.
This commit is contained in:
parent
c425599216
commit
223ba59cb0
|
@ -630,6 +630,24 @@ add_blender_test(
|
||||||
)
|
)
|
||||||
endif()
|
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(WITH_CYCLES OR WITH_OPENGL_RENDER_TESTS)
|
||||||
if(NOT OPENIMAGEIO_IDIFF)
|
if(NOT OPENIMAGEIO_IDIFF)
|
||||||
message(WARNING "Disabling render tests because OIIO idiff does not exist")
|
message(WARNING "Disabling render tests because OIIO idiff does not exist")
|
||||||
|
|
Loading…
Reference in New Issue