2014-03-22 08:48:07 +00:00
|
|
|
add_definitions(-DKWIN_UNIT_TEST)
|
2015-11-05 14:14:06 +00:00
|
|
|
remove_definitions(-DQT_USE_QSTRINGBUILDER)
|
2016-07-18 06:47:45 +00:00
|
|
|
add_subdirectory(libkwineffects)
|
2016-06-01 08:21:19 +00:00
|
|
|
add_subdirectory(libxrenderutils)
|
2016-06-29 08:29:45 +00:00
|
|
|
add_subdirectory(integration)
|
2018-01-23 16:28:18 +00:00
|
|
|
add_subdirectory(libinput)
|
2017-11-12 20:00:02 +00:00
|
|
|
if (HAVE_DRM)
|
|
|
|
add_subdirectory(drm)
|
|
|
|
endif()
|
2016-06-29 08:38:17 +00:00
|
|
|
add_subdirectory(tabbox)
|
2014-08-13 10:54:02 +00:00
|
|
|
|
2012-06-03 07:15:10 +00:00
|
|
|
########################################################
|
|
|
|
# Test ScreenPaintData
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testScreenPaintData_SRCS test_screen_paint_data.cpp)
|
2014-03-18 10:49:53 +00:00
|
|
|
add_executable(testScreenPaintData ${testScreenPaintData_SRCS})
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(testScreenPaintData kwineffects Qt5::Test Qt5::Widgets KF5::WindowSystem)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testScreenPaintData COMMAND testScreenPaintData)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testScreenPaintData)
|
2012-06-03 07:15:10 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test WindowPaintData
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testWindowPaintData_SRCS test_window_paint_data.cpp)
|
2014-03-18 10:49:53 +00:00
|
|
|
add_executable(testWindowPaintData ${testWindowPaintData_SRCS})
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(testWindowPaintData kwineffects Qt5::Widgets Qt5::Test )
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testWindowPaintData COMMAND testWindowPaintData)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testWindowPaintData)
|
2012-11-16 07:23:47 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test VirtualDesktopManager
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testVirtualDesktops_SRCS
|
|
|
|
../virtualdesktops.cpp
|
|
|
|
test_virtual_desktops.cpp
|
2014-01-07 12:45:25 +00:00
|
|
|
)
|
2014-03-18 10:49:53 +00:00
|
|
|
add_executable(testVirtualDesktops ${testVirtualDesktops_SRCS})
|
2014-01-07 12:45:25 +00:00
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(testVirtualDesktops
|
2019-09-18 10:31:02 +00:00
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::GlobalAccel
|
|
|
|
KF5::I18n
|
2020-04-29 15:18:41 +00:00
|
|
|
Plasma::KWaylandServer
|
2019-09-17 09:15:35 +00:00
|
|
|
KF5::WindowSystem
|
2014-01-07 12:45:25 +00:00
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testVirtualDesktops COMMAND testVirtualDesktops)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testVirtualDesktops)
|
2013-01-07 07:07:27 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test ClientMachine
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testClientMachine_SRCS
|
|
|
|
../client_machine.cpp
|
|
|
|
test_client_machine.cpp
|
2013-01-07 07:07:27 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testClientMachine ${testClientMachine_SRCS})
|
2017-07-29 16:47:58 +00:00
|
|
|
set_target_properties(testClientMachine PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
2013-01-07 07:07:27 +00:00
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(testClientMachine
|
|
|
|
Qt5::Concurrent
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::WindowSystem
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
XCB::XCB
|
|
|
|
XCB::XFIXES
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
${X11_X11_LIB} # to make jenkins happy
|
2013-01-07 07:07:27 +00:00
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testClientMachine COMMAND testClientMachine)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testClientMachine)
|
2013-01-14 08:20:59 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test XcbWrapper
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testXcbWrapper_SRCS
|
|
|
|
test_xcb_wrapper.cpp
|
2013-01-14 08:20:59 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testXcbWrapper ${testXcbWrapper_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(testXcbWrapper
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::WindowSystem
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
XCB::XCB
|
2013-01-14 08:20:59 +00:00
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testXcbWrapper COMMAND testXcbWrapper)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testXcbWrapper)
|
2013-01-29 13:03:05 +00:00
|
|
|
|
2015-01-21 13:54:20 +00:00
|
|
|
if (XCB_ICCCM_FOUND)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testXcbSizeHints test_xcb_size_hints.cpp)
|
2017-07-29 16:47:58 +00:00
|
|
|
set_target_properties(testXcbSizeHints PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(testXcbSizeHints
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::WindowSystem
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
XCB::ICCCM
|
|
|
|
XCB::XCB
|
2015-01-21 13:54:20 +00:00
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testXcbSizeHints COMMAND testXcbSizeHints)
|
2015-01-21 13:54:20 +00:00
|
|
|
ecm_mark_as_test(testXcbSizeHints)
|
|
|
|
endif()
|
|
|
|
|
2013-01-29 13:03:05 +00:00
|
|
|
########################################################
|
|
|
|
# Test XcbWindow
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testXcbWindow_SRCS
|
|
|
|
test_xcb_window.cpp
|
2013-01-29 13:03:05 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testXcbWindow ${testXcbWindow_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(testXcbWindow
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::WindowSystem
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
XCB::XCB
|
2013-01-29 13:03:05 +00:00
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testXcbWindow COMMAND testXcbWindow)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testXcbWindow)
|
2014-03-22 08:48:07 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test BuiltInEffectLoader
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testBuiltInEffectLoader_SRCS
|
2014-03-22 08:48:07 +00:00
|
|
|
../effectloader.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
mock_effectshandler.cpp
|
|
|
|
test_builtin_effectloader.cpp
|
2014-03-22 08:48:07 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testBuiltInEffectLoader ${testBuiltInEffectLoader_SRCS})
|
2017-07-29 16:47:58 +00:00
|
|
|
set_target_properties(testBuiltInEffectLoader PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
2014-03-22 08:48:07 +00:00
|
|
|
|
|
|
|
target_link_libraries(testBuiltInEffectLoader
|
2014-03-23 08:23:30 +00:00
|
|
|
Qt5::Concurrent
|
2014-03-22 08:48:07 +00:00
|
|
|
Qt5::Test
|
2016-11-11 08:59:46 +00:00
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::Package
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
kwineffects
|
2019-09-18 10:31:02 +00:00
|
|
|
kwin4_effect_builtins
|
2014-03-22 08:48:07 +00:00
|
|
|
)
|
|
|
|
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testBuiltInEffectLoader COMMAND testBuiltInEffectLoader)
|
2014-03-22 08:48:07 +00:00
|
|
|
ecm_mark_as_test(testBuiltInEffectLoader)
|
2014-03-23 08:23:30 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test ScriptedEffectLoader
|
|
|
|
########################################################
|
2020-01-07 16:26:28 +00:00
|
|
|
include_directories(${KWin_SOURCE_DIR})
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testScriptedEffectLoader_SRCS
|
|
|
|
../effectloader.cpp
|
2020-04-02 16:18:01 +00:00
|
|
|
../cursor.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
../screens.cpp
|
|
|
|
../scripting/scriptedeffect.cpp
|
|
|
|
../scripting/scripting_logging.cpp
|
|
|
|
../scripting/scriptingutils.cpp
|
2016-06-08 10:46:02 +00:00
|
|
|
mock_abstract_client.cpp
|
2014-03-23 08:23:30 +00:00
|
|
|
mock_effectshandler.cpp
|
2016-06-08 10:46:02 +00:00
|
|
|
mock_screens.cpp
|
|
|
|
mock_workspace.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
test_scripted_effectloader.cpp
|
2014-03-23 08:23:30 +00:00
|
|
|
)
|
2016-06-08 10:46:02 +00:00
|
|
|
kconfig_add_kcfg_files(testScriptedEffectLoader_SRCS ../settings.kcfgc)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testScriptedEffectLoader ${testScriptedEffectLoader_SRCS})
|
2014-03-23 08:23:30 +00:00
|
|
|
|
|
|
|
target_link_libraries(testScriptedEffectLoader
|
|
|
|
Qt5::Concurrent
|
2017-10-04 09:09:18 +00:00
|
|
|
Qt5::Qml
|
2014-03-23 08:23:30 +00:00
|
|
|
Qt5::Script
|
2017-11-06 16:00:15 +00:00
|
|
|
Qt5::Sensors
|
2014-03-23 08:23:30 +00:00
|
|
|
Qt5::Test
|
2016-11-11 08:59:46 +00:00
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigGui
|
|
|
|
KF5::GlobalAccel
|
|
|
|
KF5::I18n
|
|
|
|
KF5::Notifications
|
|
|
|
KF5::Package
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
kwineffects
|
2019-09-18 10:31:02 +00:00
|
|
|
kwin4_effect_builtins
|
2014-03-23 08:23:30 +00:00
|
|
|
)
|
|
|
|
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testScriptedEffectLoader COMMAND testScriptedEffectLoader)
|
2014-03-23 08:23:30 +00:00
|
|
|
ecm_mark_as_test(testScriptedEffectLoader)
|
2014-03-25 10:39:07 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test PluginEffectLoader
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testPluginEffectLoader_SRCS
|
2014-03-25 10:39:07 +00:00
|
|
|
../effectloader.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
mock_effectshandler.cpp
|
|
|
|
test_plugin_effectloader.cpp
|
2014-03-25 10:39:07 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testPluginEffectLoader ${testPluginEffectLoader_SRCS})
|
2014-03-25 10:39:07 +00:00
|
|
|
|
|
|
|
target_link_libraries(testPluginEffectLoader
|
|
|
|
Qt5::Concurrent
|
|
|
|
Qt5::Test
|
2016-11-11 08:59:46 +00:00
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::Package
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
kwineffects
|
2019-09-18 10:31:02 +00:00
|
|
|
kwin4_effect_builtins
|
2014-03-25 10:39:07 +00:00
|
|
|
)
|
|
|
|
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testPluginEffectLoader COMMAND testPluginEffectLoader)
|
2014-03-25 10:39:07 +00:00
|
|
|
ecm_mark_as_test(testPluginEffectLoader)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# FakeEffectPlugin
|
|
|
|
########################################################
|
|
|
|
add_library(fakeeffectplugin MODULE fakeeffectplugin.cpp)
|
|
|
|
set_target_properties(fakeeffectplugin PROPERTIES PREFIX "")
|
|
|
|
target_link_libraries(fakeeffectplugin kwineffects)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# FakeEffectPlugin-Version
|
|
|
|
########################################################
|
|
|
|
add_library(effectversionplugin MODULE fakeeffectplugin_version.cpp)
|
|
|
|
set_target_properties(effectversionplugin PROPERTIES PREFIX "")
|
|
|
|
target_link_libraries(effectversionplugin kwineffects)
|
2014-09-17 08:29:03 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test Screens
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testScreens_SRCS
|
|
|
|
../screens.cpp
|
2020-04-02 16:18:01 +00:00
|
|
|
../cursor.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
../x11eventfilter.cpp
|
2015-04-29 12:13:20 +00:00
|
|
|
mock_abstract_client.cpp
|
2014-09-17 08:29:03 +00:00
|
|
|
mock_screens.cpp
|
|
|
|
mock_workspace.cpp
|
2019-09-24 08:48:08 +00:00
|
|
|
mock_x11client.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
test_screens.cpp
|
2014-09-17 08:29:03 +00:00
|
|
|
)
|
|
|
|
kconfig_add_kcfg_files(testScreens_SRCS ../settings.kcfgc)
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testScreens ${testScreens_SRCS})
|
2014-09-17 08:29:03 +00:00
|
|
|
target_include_directories(testScreens BEFORE PRIVATE ./)
|
|
|
|
target_link_libraries(testScreens
|
2019-09-17 09:15:35 +00:00
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Sensors
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::ConfigGui
|
|
|
|
KF5::I18n
|
|
|
|
KF5::Notifications
|
|
|
|
KF5::WindowSystem
|
2020-04-03 00:34:25 +00:00
|
|
|
|
|
|
|
XCB::XCB #for xcbutils.h
|
2014-09-17 08:29:03 +00:00
|
|
|
)
|
|
|
|
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin_testScreens COMMAND testScreens)
|
2014-09-17 08:29:03 +00:00
|
|
|
ecm_mark_as_test(testScreens)
|
2014-09-26 12:01:44 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test ScreenEdges
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testScreenEdges_SRCS
|
2014-09-26 12:01:44 +00:00
|
|
|
../atoms.cpp
|
2017-03-19 10:40:03 +00:00
|
|
|
../gestures.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
../plugins/platforms/x11/standalone/edge.cpp
|
2014-09-26 12:01:44 +00:00
|
|
|
../screenedge.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
../screens.cpp
|
2014-09-26 12:01:44 +00:00
|
|
|
../virtualdesktops.cpp
|
2020-04-02 16:18:01 +00:00
|
|
|
../cursor.cpp
|
2015-09-30 13:06:01 +00:00
|
|
|
../xcbutils.cpp # init of extensions
|
2019-09-17 09:15:35 +00:00
|
|
|
mock_abstract_client.cpp
|
|
|
|
mock_screens.cpp
|
|
|
|
mock_workspace.cpp
|
2019-09-24 08:48:08 +00:00
|
|
|
mock_x11client.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
test_screen_edges.cpp
|
2014-09-26 12:01:44 +00:00
|
|
|
)
|
|
|
|
kconfig_add_kcfg_files(testScreenEdges_SRCS ../settings.kcfgc)
|
2019-09-17 09:15:35 +00:00
|
|
|
qt5_add_dbus_interface(testScreenEdges_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/kf5_org.freedesktop.ScreenSaver.xml screenlocker_interface )
|
2014-09-26 12:01:44 +00:00
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testScreenEdges ${testScreenEdges_SRCS})
|
2017-07-29 16:47:58 +00:00
|
|
|
set_target_properties(testScreenEdges PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
2014-09-26 12:01:44 +00:00
|
|
|
target_include_directories(testScreenEdges BEFORE PRIVATE ./)
|
|
|
|
target_link_libraries(testScreenEdges
|
2019-09-18 10:31:02 +00:00
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Sensors
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::X11Extras
|
|
|
|
|
2014-09-26 12:01:44 +00:00
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::ConfigGui
|
|
|
|
KF5::GlobalAccel
|
2019-09-17 09:15:35 +00:00
|
|
|
KF5::I18n
|
2017-11-06 16:00:15 +00:00
|
|
|
KF5::Notifications
|
2020-04-29 15:18:41 +00:00
|
|
|
Plasma::KWaylandServer
|
2019-09-17 09:15:35 +00:00
|
|
|
KF5::WindowSystem
|
2019-09-18 10:31:02 +00:00
|
|
|
|
2015-09-30 13:06:01 +00:00
|
|
|
XCB::COMPOSITE
|
|
|
|
XCB::DAMAGE
|
|
|
|
XCB::GLX
|
2019-09-17 09:15:35 +00:00
|
|
|
XCB::RANDR
|
2015-09-30 13:06:01 +00:00
|
|
|
XCB::SHM
|
2019-09-17 09:15:35 +00:00
|
|
|
XCB::SYNC
|
|
|
|
XCB::XCB
|
|
|
|
XCB::XFIXES
|
2014-09-26 12:01:44 +00:00
|
|
|
)
|
|
|
|
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin_testScreenEdges COMMAND testScreenEdges)
|
2014-09-26 12:01:44 +00:00
|
|
|
ecm_mark_as_test(testScreenEdges)
|
2016-12-18 10:53:50 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test OnScreenNotification
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testOnScreenNotification_SRCS
|
2017-01-04 17:01:25 +00:00
|
|
|
../input_event_spy.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
../onscreennotification.cpp
|
|
|
|
onscreennotificationtest.cpp
|
2016-12-18 10:53:50 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testOnScreenNotification ${testOnScreenNotification_SRCS})
|
2016-12-18 10:53:50 +00:00
|
|
|
|
|
|
|
target_link_libraries(testOnScreenNotification
|
2019-09-17 09:15:35 +00:00
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Quick
|
2016-12-18 10:53:50 +00:00
|
|
|
Qt5::Test
|
2017-01-04 17:01:25 +00:00
|
|
|
Qt5::Widgets # QAction include
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
2016-12-18 10:53:50 +00:00
|
|
|
)
|
|
|
|
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testOnScreenNotification COMMAND testOnScreenNotification)
|
2016-12-18 10:53:50 +00:00
|
|
|
ecm_mark_as_test(testOnScreenNotification)
|
2017-03-18 10:00:30 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test Gestures
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testGestures_SRCS
|
2017-03-18 10:00:30 +00:00
|
|
|
../gestures.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
test_gestures.cpp
|
2017-03-18 10:00:30 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testGestures ${testGestures_SRCS})
|
2017-03-18 10:00:30 +00:00
|
|
|
|
|
|
|
target_link_libraries(testGestures
|
|
|
|
Qt5::Test
|
|
|
|
)
|
|
|
|
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testGestures COMMAND testGestures)
|
2017-03-18 10:00:30 +00:00
|
|
|
ecm_mark_as_test(testGestures)
|
2017-05-05 17:16:38 +00:00
|
|
|
|
2017-05-03 19:17:25 +00:00
|
|
|
########################################################
|
|
|
|
# Test X11 TimestampUpdate
|
|
|
|
########################################################
|
|
|
|
add_executable(testX11TimestampUpdate test_x11_timestamp_update.cpp)
|
|
|
|
target_link_libraries(testX11TimestampUpdate
|
2017-08-24 19:48:29 +00:00
|
|
|
KF5::CoreAddons
|
2019-09-17 09:15:35 +00:00
|
|
|
Qt5::Test
|
2017-05-03 19:17:25 +00:00
|
|
|
kwin
|
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testX11TimestampUpdate COMMAND testX11TimestampUpdate)
|
2017-05-03 19:17:25 +00:00
|
|
|
ecm_mark_as_test(testX11TimestampUpdate)
|
2017-06-26 04:56:55 +00:00
|
|
|
|
2017-06-27 19:08:19 +00:00
|
|
|
set(testOpenGLContextAttributeBuilder_SRCS
|
|
|
|
../abstract_opengl_context_attribute_builder.cpp
|
|
|
|
../egl_context_attribute_builder.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
opengl_context_attribute_builder_test.cpp
|
2017-06-27 19:08:19 +00:00
|
|
|
)
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
if (HAVE_EPOXY_GLX)
|
2017-06-27 19:08:19 +00:00
|
|
|
set(testOpenGLContextAttributeBuilder_SRCS ${testOpenGLContextAttributeBuilder_SRCS} ../plugins/platforms/x11/standalone/glx_context_attribute_builder.cpp)
|
|
|
|
endif()
|
|
|
|
add_executable(testOpenGLContextAttributeBuilder ${testOpenGLContextAttributeBuilder_SRCS})
|
2017-06-26 04:56:55 +00:00
|
|
|
target_link_libraries(testOpenGLContextAttributeBuilder Qt5::Test)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testOpenGLContextAttributeBuilder COMMAND testOpenGLContextAttributeBuilder)
|
2017-06-26 04:56:55 +00:00
|
|
|
ecm_mark_as_test(testOpenGLContextAttributeBuilder)
|
2017-08-15 14:48:03 +00:00
|
|
|
|
|
|
|
set(testXkb_SRCS
|
|
|
|
../xkb.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
test_xkb.cpp
|
2017-08-15 14:48:03 +00:00
|
|
|
)
|
|
|
|
add_executable(testXkb ${testXkb_SRCS})
|
|
|
|
target_link_libraries(testXkb
|
2019-09-17 09:15:35 +00:00
|
|
|
Qt5::Gui
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
2020-04-29 15:18:41 +00:00
|
|
|
Plasma::KWaylandServer
|
2019-09-18 10:31:02 +00:00
|
|
|
KF5::WindowSystem
|
|
|
|
|
2017-08-15 14:48:03 +00:00
|
|
|
XKB::XKB
|
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testXkb COMMAND testXkb)
|
2017-08-15 14:48:03 +00:00
|
|
|
ecm_mark_as_test(testXkb)
|
2017-10-05 16:58:57 +00:00
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
if (HAVE_GBM)
|
2017-10-05 16:58:57 +00:00
|
|
|
add_executable(testGbmSurface test_gbm_surface.cpp ../plugins/platforms/drm/gbm_surface.cpp)
|
|
|
|
target_link_libraries(testGbmSurface Qt5::Test)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testGbmSurface COMMAND testGbmSurface)
|
2017-10-11 16:31:43 +00:00
|
|
|
ecm_mark_as_test(testGbmSurface)
|
2017-10-05 16:58:57 +00:00
|
|
|
endif()
|
2017-10-06 19:22:50 +00:00
|
|
|
|
|
|
|
add_executable(testVirtualKeyboardDBus test_virtualkeyboard_dbus.cpp ../virtualkeyboard_dbus.cpp)
|
|
|
|
target_link_libraries(testVirtualKeyboardDBus
|
|
|
|
Qt5::DBus
|
2019-09-17 09:15:35 +00:00
|
|
|
Qt5::Test
|
2017-10-06 19:22:50 +00:00
|
|
|
)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testVirtualKeyboardDBus COMMAND testVirtualKeyboardDBus)
|
2017-10-06 19:22:50 +00:00
|
|
|
ecm_mark_as_test(testVirtualKeyboardDBus)
|