From 8373f497bd159d4226d38cae0432e9a098afe175 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 30 Dec 2020 13:12:29 -0600 Subject: Add regression tests for curve conversion to mesh This adds a basic set of tests for curve sampling and bevel generation. At the moment there are basic test cases for bevels, caps, and the filling of 2D curves, but more tests can be added in the future. Curves are actually converted to "DispLists" for displaying them in the viewport, so it's much simpler to rely on the mesh conversion operator instead of building a new test framework for another data structure. Differential Revision: https://developer.blender.org/D9958 --- tests/python/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/python/CMakeLists.txt') diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index bf949d66286..acf8010d13c 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -172,6 +172,14 @@ add_blender_test( --python-text run_tests ) +add_blender_test( + curve_to_mesh + ${TEST_SRC_DIR}/modeling/curve_to_mesh.blend + --python ${TEST_PYTHON_DIR}/curve_to_mesh.py + -- + --run-all-tests +) + # ------------------------------------------------------------------------------ # MODIFIERS TESTS add_blender_test( -- cgit v1.2.3