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