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
|
|
|
|
../clientmodel.cpp
|
|
|
|
../desktopmodel.cpp
|
|
|
|
../tabboxconfig.cpp
|
|
|
|
../tabboxhandler.cpp
|
2015-07-31 11:03:35 +00:00
|
|
|
../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} )
|
|
|
|
target_link_libraries( testTabBoxClientModel
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Gui
|
|
|
|
Qt5::Quick
|
|
|
|
Qt5::Test
|
|
|
|
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
|
|
|
|
)
|
|
|
|
add_test(kwin-testTabBoxClientModel testTabBoxClientModel)
|
|
|
|
ecm_mark_as_test(testTabBoxClientModel)
|
2012-08-08 20:28:22 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test TabBox::TabBoxHandler
|
|
|
|
########################################################
|
|
|
|
set( testTabBoxHandler_SRCS
|
|
|
|
../clientmodel.cpp
|
|
|
|
../desktopmodel.cpp
|
|
|
|
../tabboxconfig.cpp
|
|
|
|
../tabboxhandler.cpp
|
2015-07-31 11:03:35 +00:00
|
|
|
../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} )
|
|
|
|
target_link_libraries( testTabBoxHandler
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Gui
|
|
|
|
Qt5::Quick
|
|
|
|
Qt5::Test
|
|
|
|
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
|
|
|
|
)
|
|
|
|
add_test(kwin-testTabBoxHandler testTabBoxHandler)
|
|
|
|
ecm_mark_as_test(testTabBoxHandler)
|
2012-08-15 18:53:05 +00:00
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test TabBox::TabBoxConfig
|
|
|
|
########################################################
|
|
|
|
set( testTabBoxConfig_SRCS
|
|
|
|
../tabboxconfig.cpp
|
2015-07-31 11:03:35 +00:00
|
|
|
../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 )
|
2014-03-18 10:49:53 +00:00
|
|
|
add_test(kwin-testTabBoxConfig testTabBoxConfig)
|
|
|
|
ecm_mark_as_test(testTabBoxConfig)
|
2012-11-17 10:50:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Test TabBox::DesktopChainManager
|
|
|
|
########################################################
|
|
|
|
set( testDesktopChain_SRCS
|
|
|
|
../desktopchain.cpp
|
2015-07-31 11:03:35 +00:00
|
|
|
../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 )
|
2014-03-18 10:49:53 +00:00
|
|
|
add_test(kwin-testDesktopChain testDesktopChain)
|
|
|
|
ecm_mark_as_test(testDesktopChain)
|