Changeset View
Changeset View
Standalone View
Standalone View
tests/CMakeLists.txt
| Show All 40 Lines | |||||
| # For testing with Valgrind | # For testing with Valgrind | ||||
| # set(TEST_BLENDER_EXE valgrind --track-origins=yes --error-limit=no ${TEST_BLENDER_EXE}) | # set(TEST_BLENDER_EXE valgrind --track-origins=yes --error-limit=no ${TEST_BLENDER_EXE}) | ||||
| # Standard Blender arguments for running tests. | # Standard Blender arguments for running tests. | ||||
| # Specify exit code so that if a Python script error happens, the test fails. | # Specify exit code so that if a Python script error happens, the test fails. | ||||
| set(TEST_BLENDER_EXE_PARAMS --background -noaudio --factory-startup --debug-memory --debug-exit-on-error --python-exit-code 1) | set(TEST_BLENDER_EXE_PARAMS --background -noaudio --factory-startup --debug-memory --debug-exit-on-error --python-exit-code 1) | ||||
| # Add cleanup fixtures to generate source code coverage after other tests have run. | |||||
| if(WITH_CODE_COVERAGE) | |||||
| add_subdirectory(coverage) | |||||
| endif() | |||||
| # Python CTests | # Python CTests | ||||
| if(WITH_BLENDER AND WITH_PYTHON AND NOT WITH_PYTHON_MODULE) | if(WITH_BLENDER AND WITH_PYTHON AND NOT WITH_PYTHON_MODULE) | ||||
| add_subdirectory(python) | add_subdirectory(python) | ||||
| endif() | endif() | ||||
| # Blender as python module tests. | # Blender as python module tests. | ||||
| if(WITH_PYTHON_MODULE) | if(WITH_PYTHON_MODULE) | ||||
| add_subdirectory(blender_as_python_module) | add_subdirectory(blender_as_python_module) | ||||
| endif() | endif() | ||||
| # GTest | # GTest | ||||
| add_subdirectory(gtests) | add_subdirectory(gtests) | ||||