Merge branch 'master' into blender2.8
[blender.git] / tests / python / CMakeLists.txt
index 20b65889c2bf83f7c1f161c753a4f04a9edc60ae..568f66eb27006666e8533cf0d843508dd2562ba4 100644 (file)
@@ -27,6 +27,7 @@
 set(USE_EXPERIMENTAL_TESTS FALSE)
 
 set(TEST_SRC_DIR ${CMAKE_SOURCE_DIR}/../lib/tests)
+set(TEST_DATA_SRC_DIR ${CMAKE_SOURCE_DIR}/../lib/tests_data)
 set(TEST_OUT_DIR ${CMAKE_BINARY_DIR}/tests)
 
 # ugh, any better way to do this on testing only?
@@ -617,5 +618,14 @@ if(WITH_ALEMBIC)
        )
 endif()
 
-add_subdirectory(view_layer)
+if(WITH_CODEC_FFMPEG)
+       add_python_test(
+               ffmpeg_tests
+               ${CMAKE_CURRENT_LIST_DIR}/ffmpeg_tests.py
+               --blender "$<TARGET_FILE:blender>"
+               --testdir "${TEST_DATA_SRC_DIR}/ffmpeg"
+       )
+endif()
+
 add_subdirectory(collada)
+add_subdirectory(view_layer)