Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/CMakeLists.txt
1 | add_subdirectory(helper) | 1 | add_subdirectory(helper) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | add_library(KWinIntegrationTestFramework STATIC kwin_wayland_test.cpp test_helpers.cpp ${kwin_XWAYLAND_SRCS}) | 3 | add_library(KWinIntegrationTestFramework STATIC kwin_wayland_test.cpp test_helpers.cpp ${kwin_XWAYLAND_SRCS}) | ||
4 | target_link_libraries(KWinIntegrationTestFramework kwin Qt5::Test) | 4 | target_link_libraries(KWinIntegrationTestFramework kwin Qt5::Test) | ||
5 | 5 | | |||
6 | function(integrationTest) | 6 | function(integrationTest) | ||
7 | set(optionArgs WAYLAND_ONLY) | 7 | set(optionArgs WAYLAND_ONLY) | ||
8 | set(oneValueArgs NAME) | 8 | set(oneValueArgs NAME) | ||
9 | set(multiValueArgs SRCS LIBS) | 9 | set(multiValueArgs SRCS LIBS) | ||
10 | cmake_parse_arguments(ARGS "${optionArgs}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) | 10 | cmake_parse_arguments(ARGS "${optionArgs}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) | ||
11 | add_executable(${ARGS_NAME} ${ARGS_SRCS}) | 11 | add_executable(${ARGS_NAME} ${ARGS_SRCS}) | ||
12 | target_link_libraries(${ARGS_NAME} KWinIntegrationTestFramework kwin Qt5::Test ${ARGS_LIBS}) | 12 | target_link_libraries(${ARGS_NAME} KWinIntegrationTestFramework kwinwl Qt5::Test ${ARGS_LIBS}) | ||
13 | add_test(NAME kwin-${ARGS_NAME} COMMAND dbus-run-session ${CMAKE_BINARY_DIR}/bin/${ARGS_NAME}) | 13 | add_test(NAME kwin-${ARGS_NAME} COMMAND dbus-run-session ${CMAKE_BINARY_DIR}/bin/${ARGS_NAME}) | ||
14 | if (${ARGS_WAYLAND_ONLY}) | 14 | if (${ARGS_WAYLAND_ONLY}) | ||
15 | add_executable(${ARGS_NAME}_waylandonly ${ARGS_SRCS}) | 15 | add_executable(${ARGS_NAME}_waylandonly ${ARGS_SRCS}) | ||
16 | set_target_properties(${ARGS_NAME}_waylandonly PROPERTIES COMPILE_DEFINITIONS "NO_XWAYLAND") | 16 | set_target_properties(${ARGS_NAME}_waylandonly PROPERTIES COMPILE_DEFINITIONS "NO_XWAYLAND") | ||
17 | target_link_libraries(${ARGS_NAME}_waylandonly KWinIntegrationTestFramework kwin Qt5::Test ${ARGS_LIBS}) | 17 | target_link_libraries(${ARGS_NAME}_waylandonly KWinIntegrationTestFramework kwinwl Qt5::Test ${ARGS_LIBS}) | ||
18 | add_test(NAME kwin-${ARGS_NAME}-waylandonly COMMAND dbus-run-session ${CMAKE_BINARY_DIR}/bin/${ARGS_NAME}_waylandonly) | 18 | add_test(NAME kwin-${ARGS_NAME}-waylandonly COMMAND dbus-run-session ${CMAKE_BINARY_DIR}/bin/${ARGS_NAME}_waylandonly) | ||
19 | endif() | 19 | endif() | ||
20 | endfunction() | 20 | endfunction() | ||
21 | 21 | | |||
22 | integrationTest(NAME testDontCrashGlxgears SRCS dont_crash_glxgears.cpp) | 22 | integrationTest(NAME testDontCrashGlxgears SRCS dont_crash_glxgears.cpp) | ||
23 | integrationTest(NAME testLockScreen SRCS lockscreen.cpp) | 23 | integrationTest(NAME testLockScreen SRCS lockscreen.cpp) | ||
24 | integrationTest(WAYLAND_ONLY NAME testDecorationInput SRCS decoration_input_test.cpp) | 24 | integrationTest(WAYLAND_ONLY NAME testDecorationInput SRCS decoration_input_test.cpp) | ||
25 | integrationTest(WAYLAND_ONLY NAME testInternalWindow SRCS internal_window.cpp) | 25 | integrationTest(WAYLAND_ONLY NAME testInternalWindow SRCS internal_window.cpp) | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |