~alan-griffiths/miral/debug

« back to all changes in this revision

Viewing changes to miral-qt/cmake/modules/autopilot.cmake

  • Committer: Gerry Boland
  • Date: 2016-06-01 22:06:51 UTC
  • mto: This revision was merged to the branch mainline in revision 178.
  • Revision ID: gerry.boland@canonical.com-20160601220651-ge508tffql4e7u7c
Import QtMir code into miral-qt subdirectory. Disabled by default, use -DMIRAL_ENABLE_QT=1 to build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
add_custom_target(autopilot)
 
2
 
 
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}
 
7
        DEPENDS fake_install
 
8
    )
 
9
 
 
10
    add_custom_target(fake_install
 
11
        COMMAND cmake --build ${CMAKE_BINARY_DIR} --target install
 
12
    )
 
13
 
 
14
    add_dependencies(autopilot autopilot-${TEST_NAME})
 
15
 
 
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}
 
19
        DEPENDS fake_install
 
20
    )
 
21
 
 
22
    add_dependencies(autopilot autopilot2-${TEST_NAME})
 
23
 
 
24
endfunction()