Changeset View
Changeset View
Standalone View
Standalone View
tests/python/CMakeLists.txt
| Show All 16 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_PYTHON_DIR ${CMAKE_SOURCE_DIR}/tests/python) | |||||
| 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? | ||||
| file(MAKE_DIRECTORY ${TEST_OUT_DIR}) | file(MAKE_DIRECTORY ${TEST_OUT_DIR}) | ||||
| file(MAKE_DIRECTORY ${TEST_OUT_DIR}/io_tests) | file(MAKE_DIRECTORY ${TEST_OUT_DIR}/io_tests) | ||||
| # 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!") | ||||
| ▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | add_blender_test( | ||||
| --python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_idprop_datablock.py | --python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_idprop_datablock.py | ||||
| ) | ) | ||||
| # ------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------ | ||||
| # MODELING TESTS | # MODELING TESTS | ||||
| add_blender_test( | add_blender_test( | ||||
| bmesh_bevel | bmesh_bevel | ||||
| ${TEST_SRC_DIR}/modeling/bevel_regression.blend | ${TEST_SRC_DIR}/modeling/bevel_regression.blend | ||||
| --python-text run_tests | --python ${TEST_PYTHON_DIR}/bevel_operator.py | ||||
| -- | |||||
| --run-all-tests | |||||
| ) | ) | ||||
| add_blender_test( | add_blender_test( | ||||
| bmesh_boolean | bmesh_boolean | ||||
| ${TEST_SRC_DIR}/modeling/bool_regression.blend | ${TEST_SRC_DIR}/modeling/bool_regression.blend | ||||
| --python-text run_tests | --python ${TEST_PYTHON_DIR}/boolean_operator.py | ||||
| -- | |||||
| --run-all-tests | |||||
| ) | ) | ||||
| add_blender_test( | add_blender_test( | ||||
| bmesh_split_faces | bmesh_split_faces | ||||
| ${TEST_SRC_DIR}/modeling/split_faces_test.blend | ${TEST_SRC_DIR}/modeling/split_faces_test.blend | ||||
| --python-text run_tests | --python-text run_tests | ||||
| ) | ) | ||||
| # ------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------ | ||||
| # MODIFIERS TESTS | # MODIFIERS TESTS | ||||
| add_blender_test( | add_blender_test( | ||||
| object_modifier_array | object_modifier_array | ||||
| ${TEST_SRC_DIR}/modifier_stack/array_test.blend | ${TEST_SRC_DIR}/modifier_stack/array_test.blend | ||||
| --python-text run_tests.py | --python-text run_tests.py | ||||
| ) | ) | ||||
| add_blender_test( | |||||
| modifiers | |||||
| ${TEST_SRC_DIR}/modeling/modifiers.blend | |||||
| --python ${TEST_PYTHON_DIR}/modifiers.py | |||||
| -- | |||||
| --run-all-tests | |||||
| ) | |||||
| # ------------------------------------------------------------------------------ | |||||
| # OPERATORS TESTS | |||||
| add_blender_test( | |||||
| operators | |||||
| ${TEST_SRC_DIR}/modeling/operators.blend | |||||
| --python ${TEST_PYTHON_DIR}/operators.py | |||||
| -- | |||||
| --run-all-tests | |||||
| ) | |||||
| # ------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------ | ||||
| # IO TESTS | # IO TESTS | ||||
| # OBJ Import tests | # OBJ Import tests | ||||
| # disabled until updated & working | # disabled until updated & working | ||||
| if(FALSE) | if(FALSE) | ||||
| add_blender_test( | add_blender_test( | ||||
| import_obj_cube | import_obj_cube | ||||
| ▲ Show 20 Lines • Show All 464 Lines • Show Last 20 Lines | |||||