2014-09-17 11:24:51 +00:00
|
|
|
########################################################
|
|
|
|
# Test WaylandServerDisplay
|
|
|
|
########################################################
|
|
|
|
set( testWaylandServerDisplay_SRCS
|
|
|
|
test_display.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandServerDisplay ${testWaylandServerDisplay_SRCS})
|
2020-04-29 13:59:23 +00:00
|
|
|
target_link_libraries( testWaylandServerDisplay Qt5::Test Qt5::Gui Plasma::KWaylandServer Wayland::Server)
|
2017-07-29 06:27:59 +00:00
|
|
|
add_test(NAME kwayland-testWaylandServerDisplay COMMAND testWaylandServerDisplay)
|
2014-09-17 11:24:51 +00:00
|
|
|
ecm_mark_as_test(testWaylandServerDisplay)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WaylandServerSeat
|
|
|
|
########################################################
|
|
|
|
set( testWaylandServerSeat_SRCS
|
|
|
|
test_seat.cpp
|
|
|
|
)
|
|
|
|
add_executable(testWaylandServerSeat ${testWaylandServerSeat_SRCS})
|
2020-04-29 13:59:23 +00:00
|
|
|
target_link_libraries( testWaylandServerSeat Qt5::Test Qt5::Gui Plasma::KWaylandServer Wayland::Server)
|
2017-07-29 06:27:59 +00:00
|
|
|
add_test(NAME kwayland-testWaylandServerSeat COMMAND testWaylandServerSeat)
|
2014-09-17 11:24:51 +00:00
|
|
|
ecm_mark_as_test(testWaylandServerSeat)
|
2016-04-12 08:09:22 +00:00
|
|
|
|
2016-07-04 06:48:43 +00:00
|
|
|
########################################################
|
|
|
|
# Test No XDG_RUNTIME_DIR
|
|
|
|
########################################################
|
|
|
|
add_executable(testNoXdgRuntimeDir test_no_xdg_runtime_dir.cpp)
|
2020-04-29 13:59:23 +00:00
|
|
|
target_link_libraries( testNoXdgRuntimeDir Qt5::Test Plasma::KWaylandServer)
|
2017-07-29 06:27:59 +00:00
|
|
|
add_test(NAME kwayland-testNoXdgRuntimeDir COMMAND testNoXdgRuntimeDir)
|
2016-07-04 06:48:43 +00:00
|
|
|
ecm_mark_as_test(testNoXdgRuntimeDir)
|
2020-02-12 15:20:38 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test Tablet Interface
|
|
|
|
########################################################
|
|
|
|
ecm_add_qtwayland_client_protocol(TABLET_SRCS
|
|
|
|
PROTOCOL ${WaylandProtocols_DATADIR}/unstable/tablet/tablet-unstable-v2.xml
|
|
|
|
BASENAME tablet-unstable-v2
|
|
|
|
)
|
|
|
|
add_executable(testTabletInterface test_tablet_interface.cpp ${TABLET_SRCS})
|
2020-04-29 13:59:23 +00:00
|
|
|
target_link_libraries( testTabletInterface Qt5::Test Plasma::KWaylandServer KF5::WaylandClient Wayland::Client)
|
2020-02-12 15:20:38 +00:00
|
|
|
add_test(NAME kwayland-testTabletInterface COMMAND testTabletInterface)
|
|
|
|
ecm_mark_as_test(testTabletInterface)
|
2020-05-12 11:26:57 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test DataControlInterface
|
|
|
|
########################################################
|
|
|
|
ecm_add_qtwayland_client_protocol(DATACONTROL_SRCS
|
|
|
|
PROTOCOL ${PROJECT_SOURCE_DIR}/src/protocols/wlr-data-control-unstable-v1.xml
|
|
|
|
BASENAME wlr-data-control-unstable-v1
|
|
|
|
)
|
|
|
|
add_executable(testDataControlInterface test_datacontrol_interface.cpp ${DATACONTROL_SRCS})
|
|
|
|
target_link_libraries( testDataControlInterface Qt5::Test Plasma::KWaylandServer KF5::WaylandClient Wayland::Client)
|
|
|
|
add_test(NAME kwayland-testDataControlInterface COMMAND testDataControlInterface)
|
|
|
|
ecm_mark_as_test(testDataControlInterface)
|
2020-05-04 09:45:15 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test Keyboard Shortcuts Inhibitor Interface
|
|
|
|
########################################################
|
|
|
|
ecm_add_qtwayland_client_protocol(KEYBOARD_SHORTCUTS_INHIBITOR_SRCS
|
|
|
|
PROTOCOL ${WaylandProtocols_DATADIR}/unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml
|
|
|
|
BASENAME keyboard-shortcuts-inhibit-unstable-v1
|
|
|
|
)
|
|
|
|
add_executable(testKeyboardShortcutsInhibitorInterface test_keyboard_shortcuts_inhibitor_interface.cpp ${KEYBOARD_SHORTCUTS_INHIBITOR_SRCS})
|
|
|
|
target_link_libraries(testKeyboardShortcutsInhibitorInterface Qt5::Test Plasma::KWaylandServer KF5::WaylandClient Wayland::Client)
|
|
|
|
add_test(NAME kwayland-testKeyboardShortcutsInhibitorInterface COMMAND testKeyboardShortcutsInhibitorInterface)
|
|
|
|
ecm_mark_as_test(testKeyboardShortcutsInhibitorInterface)
|
|
|
|
|
2020-05-24 10:46:27 +00:00
|
|
|
########################################################
|
|
|
|
# Test Viewporter Interface
|
|
|
|
########################################################
|
|
|
|
ecm_add_qtwayland_client_protocol(VIEWPORTER_SRCS
|
|
|
|
PROTOCOL ${WaylandProtocols_DATADIR}/stable/viewporter/viewporter.xml
|
|
|
|
BASENAME viewporter
|
|
|
|
)
|
|
|
|
add_executable(testViewporterInterface test_viewporter_interface.cpp ${VIEWPORTER_SRCS})
|
|
|
|
target_link_libraries(testViewporterInterface Qt5::Test Plasma::KWaylandServer KF5::WaylandClient Wayland::Client)
|
|
|
|
add_test(NAME kwayland-testViewporterInterface COMMAND testViewporterInterface)
|
|
|
|
ecm_mark_as_test(testViewporterInterface)
|
2020-06-16 14:58:21 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test ScreencastInterface
|
|
|
|
########################################################
|
|
|
|
ecm_add_qtwayland_client_protocol(SCREENCAST_SRCS
|
|
|
|
PROTOCOL PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/screencast.xml
|
|
|
|
BASENAME zkde-screencast-unstable-v1
|
|
|
|
)
|
|
|
|
add_executable(testScreencastInterface test_screencast.cpp ${SCREENCAST_SRCS})
|
|
|
|
target_link_libraries(testScreencastInterface Qt5::Test Plasma::KWaylandServer Wayland::Client KF5::WaylandClient)
|
|
|
|
add_test(NAME kwayland-testScreencastInterface COMMAND testScreencastInterface)
|
|
|
|
ecm_mark_as_test(testScreencastInterface)
|
2020-07-23 14:36:01 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test InputMethod Interface
|
|
|
|
########################################################
|
|
|
|
ecm_add_qtwayland_client_protocol(INPUTMETHOD_SRCS
|
|
|
|
PROTOCOL ${WaylandProtocols_DATADIR}/unstable/input-method/input-method-unstable-v1.xml
|
|
|
|
BASENAME input-method-unstable-v1
|
|
|
|
)
|
|
|
|
add_executable(testInputMethodInterface test_inputmethod_interface.cpp ${INPUTMETHOD_SRCS})
|
|
|
|
target_link_libraries(testInputMethodInterface Qt5::Test Plasma::KWaylandServer KF5::WaylandClient Wayland::Client)
|
|
|
|
add_test(NAME kwayland-testInputMethodInterface COMMAND testInputMethodInterface)
|
|
|
|
ecm_mark_as_test(testInputMethodInterface)
|