~ricmm/unity-mir/catch-starting-failure

« back to all changes in this revision

Viewing changes to tests/auto/modules/Unity/Application/CMakeLists.txt

Tests for ApplicationManager start/stopApplication

At the moment they just work on the device (well they may as well work on Mir on the desktop but have not tried).

You need to install the libunity-mir-tests package and then run unity-mir-test-app.

Approved by Gerry Boland, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
add_subdirectory(fakeApp)
 
2
 
 
3
include_directories(
 
4
    ../../../../../src/modules/Unity/Application
 
5
    ../../../../../src/unity-mir
 
6
    ${MIRSERVER_INCLUDE_DIRS}
 
7
    ${UPSTART_APP_LAUNCH_INCLUDE_DIRS}
 
8
    )
 
9
 
 
10
add_executable(unity-mir-test-app
 
11
    main.cpp
 
12
    ../../../../../src/modules/Unity/Application/application_manager.cpp
 
13
    ../../../../../src/modules/Unity/Application/application.cpp
 
14
    ../../../../../src/modules/Unity/Application/desktopfilereader.cpp
 
15
    ../../../../../src/modules/Unity/Application/dbuswindowstack.cpp
 
16
    ../../../../../src/modules/Unity/Application/taskcontroller.cpp
 
17
    # We need to pull in some external header files
 
18
    /usr/include/unity/shell/application/ApplicationManagerInterface.h
 
19
    /usr/include/unity/shell/application/ApplicationInfoInterface.h
 
20
    )
 
21
qt5_use_modules(unity-mir-test-app Test DBus Gui)
 
22
install(TARGETS unity-mir-test-app RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
 
23
target_link_libraries(unity-mir-test-app
 
24
    unity-mir
 
25
    ${MIRSERVER_LIBRARIES}
 
26
    ${UPSTART_APP_LAUNCH_LIBRARIES}
 
27
    )
 
28
install(TARGETS unity-mir-test-app RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})