Changeset View
Changeset View
Standalone View
Standalone View
tests/python/CMakeLists.txt
| Show All 21 Lines | |||||
| # Use '--write-blend=/tmp/test.blend' to view output | # Use '--write-blend=/tmp/test.blend' to view output | ||||
| # Some tests are interesting but take too long to run | # Some tests are interesting but take too long to run | ||||
| # and don't give deterministic results | # and don't give deterministic results | ||||
| set(USE_EXPERIMENTAL_TESTS FALSE) | set(USE_EXPERIMENTAL_TESTS FALSE) | ||||
| set(TEST_SRC_DIR ${CMAKE_SOURCE_DIR}/../lib/tests) | 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) | set(TEST_OUT_DIR ${CMAKE_BINARY_DIR}/tests) | ||||
| # ugh, any better way to do this on testing only? | # ugh, any better way to do this on testing only? | ||||
| execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TEST_OUT_DIR}) | execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TEST_OUT_DIR}) | ||||
| #~ if(NOT IS_DIRECTORY ${TEST_SRC_DIR}) | #~ if(NOT IS_DIRECTORY ${TEST_SRC_DIR}) | ||||
| #~ message(FATAL_ERROR "CMake test directory not found!") | #~ message(FATAL_ERROR "CMake test directory not found!") | ||||
| #~ endif() | #~ endif() | ||||
| ▲ Show 20 Lines • Show All 574 Lines • ▼ Show 20 Lines | add_test( | ||||
| COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS} | COMMAND "$<TARGET_FILE:blender>" ${TEST_BLENDER_EXE_PARAMS} | ||||
| --python ${CMAKE_CURRENT_LIST_DIR}/bl_alembic_import_test.py | --python ${CMAKE_CURRENT_LIST_DIR}/bl_alembic_import_test.py | ||||
| -- | -- | ||||
| --testdir "${TEST_SRC_DIR}/alembic" | --testdir "${TEST_SRC_DIR}/alembic" | ||||
| --with-legacy-depsgraph=${WITH_LEGACY_DEPSGRAPH} | --with-legacy-depsgraph=${WITH_LEGACY_DEPSGRAPH} | ||||
| ) | ) | ||||
| endif() | endif() | ||||
| 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(collada) | ||||