1
add_custom_target(autopilot)
3
function(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=${QTMIR_INSTALL_QML}/mocks python3 -m autopilot.run run ${TEST_SUITE}
6
WORKING_DIRECTORY ${WORKING_DIR}
10
add_custom_target(fake_install
11
COMMAND cmake --build ${CMAKE_BINARY_DIR} --target install
14
add_dependencies(autopilot autopilot-${TEST_NAME})
16
add_custom_target(autopilot2-${TEST_NAME}
17
COMMAND LANG=C UBUNTU_ICON_THEME=ubuntu-mobile QML2_IMPORT_PATH=${QTMIR_INSTALL_QML}/mocks python2 -m autopilot.run run ${TEST_SUITE}
18
WORKING_DIRECTORY ${WORKING_DIR}
22
add_dependencies(autopilot autopilot2-${TEST_NAME})