diff options
Diffstat (limited to 'tests/python/CMakeLists.txt')
-rw-r--r-- | tests/python/CMakeLists.txt | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index 18f61d83c3c..22426a6d6fc 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -43,7 +43,9 @@ function(add_blender_test testname) # Don't fail tests on leaks since these often happen in external libraries # that we can't fix. - set_tests_properties(${testname} PROPERTIES ENVIRONMENT LSAN_OPTIONS=exitcode=0) + set_tests_properties(${testname} PROPERTIES ENVIRONMENT + LSAN_OPTIONS=exitcode=0:$ENV{LSAN_OPTIONS} + ) endfunction() # Run Python script outside Blender. @@ -56,7 +58,9 @@ function(add_python_test testname testscript) NAME ${testname} COMMAND ${TEST_PYTHON_EXE} ${testscript} ${ARGN} ) - set_tests_properties(${testname} PROPERTIES ENVIRONMENT LSAN_OPTIONS=exitcode=0) + set_tests_properties(${testname} PROPERTIES ENVIRONMENT + LSAN_OPTIONS=exitcode=0:$ENV{LSAN_OPTIONS} + ) endfunction() # ------------------------------------------------------------------------------ @@ -218,6 +222,15 @@ add_blender_test( ) # ------------------------------------------------------------------------------ +# ANIMATION TESTS +add_blender_test( + bl_animation_fcurves + --python ${CMAKE_CURRENT_LIST_DIR}/bl_animation_fcurves.py + -- + --testdir "${TEST_SRC_DIR}/animation" +) + +# ------------------------------------------------------------------------------ # IO TESTS # OBJ Import tests @@ -686,6 +699,30 @@ if(WITH_CODEC_FFMPEG) ) endif() + +# ------------------------------------------------------------------------------ +# SEQUENCER RENDER TESTS + +if(NOT OPENIMAGEIO_IDIFF) + MESSAGE(STATUS "Disabling sequencer render tests because OIIO idiff does not exist") +else() + set(render_tests + transform + ) + + foreach(render_test ${render_tests}) + add_python_test( + sequencer_render_${render_test} + ${CMAKE_CURRENT_LIST_DIR}/sequencer_render_tests.py + -blender "${TEST_BLENDER_EXE}" + -testdir "${TEST_SRC_DIR}/sequence_editing/${render_test}" + -idiff "${OPENIMAGEIO_IDIFF}" + -outdir "${TEST_OUT_DIR}/sequence_editing" + ) + endforeach() +endif() + + add_subdirectory(collada) # TODO: disabled for now after collection unification |