1c61e61119
Summary: KWin was quite good in ensuring that you don't need to install by passing paths to the tests. The new way is much nicer, so code is adjusted for the new way. Also if we require a newer ECM in future we need to support the new way. No guarantee that the tests don't pick something up from the system env, that needs more testing. References: https://community.kde.org/Guidelines_and_HOWTOs/Making_apps_run_uninstalled Test Plan: The tests which loaded helpers pass Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D7543
19 lines
703 B
CMake
19 lines
703 B
CMake
include(ECMMarkAsTest)
|
|
|
|
macro(KWINEFFECTS_UNIT_TESTS)
|
|
foreach(_testname ${ARGN})
|
|
add_executable(${_testname} ${_testname}.cpp)
|
|
add_test(NAME kwineffects-${_testname} COMMAND ${_testname})
|
|
target_link_libraries(${_testname} Qt5::Test kwineffects)
|
|
ecm_mark_as_test(${_testname})
|
|
endforeach()
|
|
endmacro()
|
|
|
|
kwineffects_unit_tests(
|
|
windowquadlisttest
|
|
)
|
|
|
|
add_executable(kwinglplatformtest kwinglplatformtest.cpp mock_gl.cpp ../../libkwineffects/kwinglplatform.cpp)
|
|
add_test(NAME kwineffects-kwinglplatformtest COMMAND kwinglplatformtest)
|
|
target_link_libraries(kwinglplatformtest Qt5::Test Qt5::Gui Qt5::X11Extras KF5::ConfigCore XCB::XCB)
|
|
ecm_mark_as_test(kwinglplatformtest)
|