1pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32)
2pkg_check_modules(GIO REQUIRED gio-2.0>=2.32)
3pkg_check_modules(QMENUMODEL REQUIRED qmenumodel)
5set(INDICATORS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../plugins/Unity/Indicators)
6set(TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
9 ${CMAKE_CURRENT_BINARY_DIR}
11 ${TEST_DIR}/mocks/QMenuModel
16macro(indicator_test TEST)
17 set(multi_value_keywords ADDITIONAL_CPPS ADDITIONAL_LIBS)
18 cmake_parse_arguments(test "" "" "${multi_value_keywords}" ${ARGN})
20 add_executable(${TEST}Exec
22 ${test_ADDITIONAL_CPPS}
24 qt5_use_modules(${TEST}Exec Test Core Qml)
25 target_link_libraries(${TEST}Exec
26 ${test_ADDITIONAL_LIBS}
32 add_unity8_unittest(${TEST} ${TEST}Exec)
33endmacro(indicator_test)
35indicator_test(IndicatorsManager ADDITIONAL_LIBS IndicatorsQml)
36indicator_test(IndicatorsModel ADDITIONAL_LIBS IndicatorsQml)
37indicator_test(MenuContentActivator ADDITIONAL_CPPS ${INDICATORS_DIR}/menucontentactivator.cpp)
38indicator_test(UnityMenuModelStack ADDITIONAL_CPPS ${TEST_DIR}/mocks/QMenuModel/unitymenumodel.cpp ${INDICATORS_DIR}/unitymenumodelstack.cpp)
39indicator_test(RootActionState ADDITIONAL_LIBS IndicatorsQml)
40indicator_test(SharedUnityMenuModel ADDITIONAL_LIBS IndicatorsQml)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list