2020-01-07 16:26:28 +00:00
|
|
|
include_directories(${KWin_SOURCE_DIR})
|
2014-06-10 09:14:59 +00:00
|
|
|
add_definitions(-DKWIN_UNIT_TEST)
|
2012-07-21 09:25:17 +00:00
|
|
|
########################################################
|
|
|
|
# Test TabBox::ClientModel
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testTabBoxClientModel_SRCS
|
|
|
|
../../tabbox/clientmodel.cpp
|
|
|
|
../../tabbox/desktopmodel.cpp
|
|
|
|
../../tabbox/tabbox_logging.cpp
|
|
|
|
../../tabbox/tabboxconfig.cpp
|
|
|
|
../../tabbox/tabboxhandler.cpp
|
|
|
|
mock_tabboxclient.cpp
|
|
|
|
mock_tabboxhandler.cpp
|
|
|
|
test_tabbox_clientmodel.cpp
|
2012-07-21 09:25:17 +00:00
|
|
|
)
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testTabBoxClientModel ${testTabBoxClientModel_SRCS})
|
2017-07-29 16:47:58 +00:00
|
|
|
set_target_properties(testTabBoxClientModel PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(testTabBoxClientModel
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Quick
|
|
|
|
Qt5::Script
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::I18n
|
|
|
|
KF5::Package
|
|
|
|
KF5::WindowSystem
|
|
|
|
|
2014-06-10 09:14:59 +00:00
|
|
|
XCB::XCB
|
|
|
|
)
|
2020-12-30 10:28:40 +00:00
|
|
|
target_include_directories(testTabBoxClientModel PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testTabBoxClientModel COMMAND testTabBoxClientModel)
|
2014-06-10 09:14:59 +00:00
|
|
|
ecm_mark_as_test(testTabBoxClientModel)
|
2012-08-08 20:28:22 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test TabBox::TabBoxHandler
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testTabBoxHandler_SRCS
|
|
|
|
../../tabbox/clientmodel.cpp
|
|
|
|
../../tabbox/desktopmodel.cpp
|
|
|
|
../../tabbox/tabbox_logging.cpp
|
|
|
|
../../tabbox/tabboxconfig.cpp
|
|
|
|
../../tabbox/tabboxhandler.cpp
|
|
|
|
mock_tabboxclient.cpp
|
|
|
|
mock_tabboxhandler.cpp
|
|
|
|
test_tabbox_handler.cpp
|
2012-08-08 20:28:22 +00:00
|
|
|
)
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testTabBoxHandler ${testTabBoxHandler_SRCS})
|
2017-07-29 16:47:58 +00:00
|
|
|
set_target_properties(testTabBoxHandler PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(testTabBoxHandler
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Quick
|
|
|
|
Qt5::Script
|
|
|
|
Qt5::Test
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::X11Extras
|
2019-09-18 10:31:02 +00:00
|
|
|
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::I18n
|
|
|
|
KF5::Package
|
|
|
|
KF5::WindowSystem
|
|
|
|
|
2014-06-10 09:14:59 +00:00
|
|
|
XCB::XCB
|
|
|
|
)
|
2020-12-30 10:28:40 +00:00
|
|
|
target_include_directories(testTabBoxHandler PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testTabBoxHandler COMMAND testTabBoxHandler)
|
2014-06-10 09:14:59 +00:00
|
|
|
ecm_mark_as_test(testTabBoxHandler)
|
2012-08-15 18:53:05 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test TabBox::TabBoxConfig
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testTabBoxConfig_SRCS
|
2016-06-29 08:38:17 +00:00
|
|
|
../../tabbox/tabbox_logging.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
../../tabbox/tabboxconfig.cpp
|
2012-08-15 18:53:05 +00:00
|
|
|
test_tabbox_config.cpp
|
|
|
|
)
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testTabBoxConfig ${testTabBoxConfig_SRCS})
|
|
|
|
target_link_libraries(testTabBoxConfig Qt5::Core Qt5::Test)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testTabBoxConfig COMMAND testTabBoxConfig)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testTabBoxConfig)
|
2012-11-17 10:50:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test TabBox::DesktopChainManager
|
|
|
|
########################################################
|
2019-09-17 09:15:35 +00:00
|
|
|
set(testDesktopChain_SRCS
|
2016-06-29 08:38:17 +00:00
|
|
|
../../tabbox/desktopchain.cpp
|
|
|
|
../../tabbox/tabbox_logging.cpp
|
2012-11-17 10:50:59 +00:00
|
|
|
test_desktopchain.cpp
|
|
|
|
)
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
add_executable(testDesktopChain ${testDesktopChain_SRCS})
|
|
|
|
target_link_libraries(testDesktopChain Qt5::Core Qt5::Test)
|
2017-08-25 16:18:20 +00:00
|
|
|
add_test(NAME kwin-testDesktopChain COMMAND testDesktopChain)
|
2014-03-18 10:49:53 +00:00
|
|
|
ecm_mark_as_test(testDesktopChain)
|