2014-06-10 09:14:59 +00:00
|
|
|
include_directories(${KWIN_SOURCE_DIR})
|
|
|
|
add_definitions(-DKWIN_UNIT_TEST)
|
2012-07-21 09:25:17 +00:00
|
|
|
########################################################
|
|
|
|
# Test TabBox::ClientModel
|
|
|
|
########################################################
|
|
|
|
set( testTabBoxClientModel_SRCS
|
2016-06-29 08:38:17 +00:00
|
|
|
../../tabbox/clientmodel.cpp
|
|
|
|
../../tabbox/desktopmodel.cpp
|
|
|
|
../../tabbox/tabboxconfig.cpp
|
|
|
|
../../tabbox/tabboxhandler.cpp
|
|
|
|
../../tabbox/tabbox_logging.cpp
|
2012-07-21 09:25:17 +00:00
|
|
|
test_tabbox_clientmodel.cpp
|
|
|
|
mock_tabboxhandler.cpp
|
|
|
|
mock_tabboxclient.cpp
|
|
|
|
)
|
|
|
|
|
2014-06-10 09:14:59 +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")
|
2014-06-10 09:14:59 +00:00
|
|
|
target_link_libraries( testTabBoxClientModel
|
|
|
|
Qt5::Core
|
2017-11-08 10:23:00 +00:00
|
|
|
Qt5::Widgets
|
2017-10-04 09:09:18 +00:00
|
|
|
Qt5::Script
|
2014-06-10 09:14:59 +00:00
|
|
|
Qt5::Quick
|
|
|
|
Qt5::Test
|
2019-02-22 14:40:15 +00:00
|
|
|
Qt5::DBus
|
2014-06-10 09:14:59 +00:00
|
|
|
Qt5::X11Extras
|
2016-01-29 08:48:02 +00:00
|
|
|
KF5::ConfigCore
|
2014-06-10 09:14:59 +00:00
|
|
|
KF5::I18n
|
2015-07-07 06:28:38 +00:00
|
|
|
KF5::Package
|
2014-06-10 09:14:59 +00:00
|
|
|
KF5::WindowSystem
|
|
|
|
XCB::XCB
|
|
|
|
)
|
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
|
|
|
|
########################################################
|
|
|
|
set( testTabBoxHandler_SRCS
|
2016-06-29 08:38:17 +00:00
|
|
|
../../tabbox/clientmodel.cpp
|
|
|
|
../../tabbox/desktopmodel.cpp
|
|
|
|
../../tabbox/tabboxconfig.cpp
|
|
|
|
../../tabbox/tabboxhandler.cpp
|
|
|
|
../../tabbox/tabbox_logging.cpp
|
2012-08-08 20:28:22 +00:00
|
|
|
test_tabbox_handler.cpp
|
|
|
|
mock_tabboxhandler.cpp
|
|
|
|
mock_tabboxclient.cpp
|
|
|
|
)
|
|
|
|
|
2014-06-10 09:14:59 +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")
|
2014-06-10 09:14:59 +00:00
|
|
|
target_link_libraries( testTabBoxHandler
|
|
|
|
Qt5::Core
|
2017-11-08 10:23:00 +00:00
|
|
|
Qt5::Widgets
|
2017-10-04 09:09:18 +00:00
|
|
|
Qt5::Script
|
2014-06-10 09:14:59 +00:00
|
|
|
Qt5::Quick
|
|
|
|
Qt5::Test
|
2019-02-22 14:40:15 +00:00
|
|
|
Qt5::DBus
|
2014-06-10 09:14:59 +00:00
|
|
|
Qt5::X11Extras
|
2016-01-29 08:48:02 +00:00
|
|
|
KF5::ConfigCore
|
2014-06-10 09:14:59 +00:00
|
|
|
KF5::I18n
|
2015-07-07 06:28:38 +00:00
|
|
|
KF5::Package
|
2014-06-10 09:14:59 +00:00
|
|
|
KF5::WindowSystem
|
|
|
|
XCB::XCB
|
|
|
|
)
|
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
|
|
|
|
########################################################
|
|
|
|
set( testTabBoxConfig_SRCS
|
2016-06-29 08:38:17 +00:00
|
|
|
../../tabbox/tabboxconfig.cpp
|
|
|
|
../../tabbox/tabbox_logging.cpp
|
2012-08-15 18:53:05 +00:00
|
|
|
test_tabbox_config.cpp
|
|
|
|
)
|
|
|
|
|
2014-03-18 10:49:53 +00:00
|
|
|
add_executable( testTabBoxConfig ${testTabBoxConfig_SRCS} )
|
2013-08-20 07:10:18 +00:00
|
|
|
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
|
|
|
|
########################################################
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2014-03-18 10:49:53 +00:00
|
|
|
add_executable( testDesktopChain ${testDesktopChain_SRCS} )
|
2013-08-20 07:10:18 +00:00
|
|
|
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)
|