Changeset View
Changeset View
Standalone View
Standalone View
tests/python/view_layer/CMakeLists.txt
| Show All 24 Lines | |||||
| # 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() | ||||
| # for testing with valgrind prefix: valgrind --track-origins=yes --error-limit=no | # for testing with valgrind prefix: valgrind --track-origins=yes --error-limit=no | ||||
| set(TEST_BLENDER_EXE $<TARGET_FILE:blender> --background -noaudio --factory-startup --env-system-scripts ${CMAKE_SOURCE_DIR}/release/scripts) | set(TEST_BLENDER_EXE $<TARGET_FILE:blender> --background -noaudio --factory-startup --debug-memory --fail-on-memleak --env-system-scripts ${CMAKE_SOURCE_DIR}/release/scripts) | ||||
| # ------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------ | ||||
| macro(VIEW_LAYER_TEST test_name) | macro(VIEW_LAYER_TEST test_name) | ||||
| # Adds ${CMAKE_CURRENT_LIST_DIR} to sys.path so that the tests can import | # Adds ${CMAKE_CURRENT_LIST_DIR} to sys.path so that the tests can import | ||||
| # things from view_layer_common.py | # things from view_layer_common.py | ||||
| add_test(view_layer_${test_name} ${TEST_BLENDER_EXE} | add_test(view_layer_${test_name} ${TEST_BLENDER_EXE} | ||||
| ▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines | |||||