on master help sign in
unity8/cmake/modules/autopilot.cmake
16 lines 523 B history raw
1add_custom_target(autopilot)
3function(declare_autopilot_test TEST_NAME TEST_SUITE WORKING_DIR)
4 add_custom_target(autopilot-${TEST_NAME}
5 COMMAND UNITY_TESTING=1 LANG=C QML2_IMPORT_PATH=${SHELL_INSTALL_QML}/mocks python3 -m autopilot.run run ${TEST_SUITE}
6 WORKING_DIRECTORY ${WORKING_DIR}
7 DEPENDS fake_install
8 )
10 add_custom_target(fake_install
11 COMMAND cmake --build ${CMAKE_BINARY_DIR} --target install
12 )
14 add_dependencies(autopilot autopilot-${TEST_NAME})
16endfunction()