~feng-kylin/unity8/OpenUrlInIndicator

« back to all changes in this revision

Viewing changes to cmake/modules/autopilot.cmake

  • Committer: Tarmac
  • Author(s): Nick Dedekind, Launchpad Translations on behalf of unity-team
  • Date: 2013-07-11 19:50:27 UTC
  • mfrom: (2.5.114 indicators-client)
  • Revision ID: tarmac-20130711195027-yheu3w2oc42c1h7s
Moved indicators-client code into unity8. Fixes: https://bugs.launchpad.net/bugs/1191132, https://bugs.launchpad.net/bugs/1191822.

Approved by PS Jenkins bot, Michał Sawicz, Nicolas d'Offay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
add_custom_target(autopilot)
2
2
 
3
 
function(declare_autopilot_test TEST_NAME WORKING_DIR)
4
 
  add_custom_command(TARGET autopilot
5
 
  COMMAND autopilot run ${TEST_NAME}
6
 
  WORKING_DIRECTORY ${WORKING_DIR})
 
3
function(declare_autopilot_test TEST_NAME TEST_SUITE WORKING_DIR)
 
4
    add_custom_target(autopilot-${TEST_NAME}
 
5
        COMMAND autopilot run ${TEST_SUITE}
 
6
        WORKING_DIRECTORY ${WORKING_DIR}
 
7
    )
 
8
 
 
9
    add_dependencies(autopilot autopilot-${TEST_NAME})
7
10
endfunction()