Changeset View
Changeset View
Standalone View
Standalone View
tests/CMakeLists.txt
| Show All 38 Lines | |||||
| unset(_default_test_python_exe) | unset(_default_test_python_exe) | ||||
| # 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 --python-exit-code 1) | set(TEST_BLENDER_EXE_PARAMS --background -noaudio --factory-startup --debug-memory --fail-on-memleak --python-exit-code 1) | ||||
| # Python CTests | # Python CTests | ||||
| if(WITH_BLENDER AND WITH_PYTHON) | if(WITH_BLENDER AND WITH_PYTHON) | ||||
| add_subdirectory(python) | add_subdirectory(python) | ||||
| endif() | endif() | ||||
| # GTest | # GTest | ||||
| add_subdirectory(gtests) | add_subdirectory(gtests) | ||||