on ac4b821 help sign in
unity8/cmake/modules/autopilot.cmake
15 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 LANG=C UBUNTU_ICON_THEME=ubuntu-mobile QML2_IMPORT_PATH=${SHELL_INSTALL_QML}/mocks autopilot 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})
15endfunction()