Changeset View
Changeset View
Standalone View
Standalone View
tests/python/CMakeLists.txt
| Show First 20 Lines • Show All 532 Lines • ▼ Show 20 Lines | macro(add_cycles_render_test subject) | ||||
| COMMAND ${CMAKE_CURRENT_LIST_DIR}/cycles_render_tests.py | COMMAND ${CMAKE_CURRENT_LIST_DIR}/cycles_render_tests.py | ||||
| -blender "$<TARGET_FILE:blender>" | -blender "$<TARGET_FILE:blender>" | ||||
| -testdir "${TEST_SRC_DIR}/cycles/ctests/${subject}" | -testdir "${TEST_SRC_DIR}/cycles/ctests/${subject}" | ||||
| -idiff "${OPENIMAGEIO_IDIFF}" | -idiff "${OPENIMAGEIO_IDIFF}" | ||||
| -outdir "${TEST_OUT_DIR}/cycles" | -outdir "${TEST_OUT_DIR}/cycles" | ||||
| ) | ) | ||||
| endif() | endif() | ||||
| endmacro() | endmacro() | ||||
| if(WITH_OPENGL_TESTS) | if(WITH_OPENGL_RENDER_TESTS) | ||||
| add_cycles_render_test(opengl) | add_cycles_render_test(opengl) | ||||
| endif() | endif() | ||||
| add_cycles_render_test(bake) | add_cycles_render_test(bake) | ||||
| add_cycles_render_test(denoise) | add_cycles_render_test(denoise) | ||||
| add_cycles_render_test(displacement) | add_cycles_render_test(displacement) | ||||
| add_cycles_render_test(image_data_types) | add_cycles_render_test(image_data_types) | ||||
| add_cycles_render_test(image_mapping) | add_cycles_render_test(image_mapping) | ||||
| add_cycles_render_test(image_texture_limit) | add_cycles_render_test(image_texture_limit) | ||||
| add_cycles_render_test(light) | add_cycles_render_test(light) | ||||
| add_cycles_render_test(mblur) | add_cycles_render_test(mblur) | ||||
| add_cycles_render_test(reports) | add_cycles_render_test(reports) | ||||
| add_cycles_render_test(render) | add_cycles_render_test(render) | ||||
| add_cycles_render_test(shader) | add_cycles_render_test(shader) | ||||
| add_cycles_render_test(shader_tangent) | add_cycles_render_test(shader_tangent) | ||||
| add_cycles_render_test(shadow_catcher) | add_cycles_render_test(shadow_catcher) | ||||
| add_cycles_render_test(sss) | add_cycles_render_test(sss) | ||||
| add_cycles_render_test(texture_space) | add_cycles_render_test(texture_space) | ||||
| add_cycles_render_test(volume) | add_cycles_render_test(volume) | ||||
| else() | else() | ||||
| MESSAGE(STATUS "Disabling Cycles tests because tests folder does not exist") | MESSAGE(STATUS "Disabling Cycles tests because tests folder does not exist") | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||
| if(WITH_OPENGL_DRAW_TESTS) | |||||
| if(OPENIMAGEIO_IDIFF AND EXISTS "${TEST_SRC_DIR}/opengl") | |||||
| macro(add_opengl_draw_test subject) | |||||
| if(MSVC) | |||||
| add_test( | |||||
| NAME opengl_draw_${subject}_test | |||||
| COMMAND | |||||
| "$<TARGET_FILE_DIR:blender>/${BLENDER_VERSION_MAJOR}.${BLENDER_VERSION_MINOR}/python/bin/python$<$<CONFIG:Debug>:_d>" | |||||
campbellbarton: *picky*, Could use a variable for the `COMMAND` instead of two different test calls. | |||||
Not Done Inline ActionsSee D2367#55668, that doesn't work for some reason. I think P615 would be a cleaner solution anyway, but I should test that on Windows before committing. brecht: See D2367#55668, that doesn't work for some reason.
I think P615 would be a cleaner solution… | |||||
| ${CMAKE_CURRENT_LIST_DIR}/opengl_draw_tests.py | |||||
| -blender "$<TARGET_FILE:blender>" | |||||
| -testdir "${TEST_SRC_DIR}/${subject}" | |||||
| -idiff "${OPENIMAGEIO_IDIFF}" | |||||
| -outdir "${TEST_OUT_DIR}/opengl_draw" | |||||
| ) | |||||
| else() | |||||
| add_test( | |||||
| NAME opengl_draw_${subject}_test | |||||
| COMMAND ${CMAKE_CURRENT_LIST_DIR}/opengl_draw_tests.py | |||||
| -blender "$<TARGET_FILE:blender>" | |||||
| -testdir "${TEST_SRC_DIR}/${subject}" | |||||
| -idiff "${OPENIMAGEIO_IDIFF}" | |||||
| -outdir "${TEST_OUT_DIR}/opengl_draw" | |||||
| ) | |||||
| endif() | |||||
| endmacro() | |||||
| add_opengl_draw_test(opengl) | |||||
| add_opengl_draw_test(ui_tests) | |||||
| else() | |||||
| MESSAGE(STATUS "Disabling OpenGL tests because tests folder does not exist") | |||||
| endif() | |||||
| endif() | |||||
| if(WITH_ALEMBIC) | if(WITH_ALEMBIC) | ||||
| find_package_wrapper(Alembic) | find_package_wrapper(Alembic) | ||||
| if(NOT ALEMBIC_FOUND) | if(NOT ALEMBIC_FOUND) | ||||
| message(FATAL_ERROR "Alembic is enabled but cannot be found") | message(FATAL_ERROR "Alembic is enabled but cannot be found") | ||||
| endif() | endif() | ||||
| get_filename_component(real_include_dir ${ALEMBIC_INCLUDE_DIR} REALPATH) | get_filename_component(real_include_dir ${ALEMBIC_INCLUDE_DIR} REALPATH) | ||||
| get_filename_component(ALEMBIC_ROOT_DIR ${real_include_dir} DIRECTORY) | get_filename_component(ALEMBIC_ROOT_DIR ${real_include_dir} DIRECTORY) | ||||
| Show All 30 Lines | |||||
*picky*, Could use a variable for the COMMAND instead of two different test calls.