diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index be7a8d7e95..410258d465 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -3,6 +3,7 @@ remove_definitions(-DQT_USE_QSTRINGBUILDER) add_subdirectory(libkwineffects) add_subdirectory(integration) add_subdirectory(libinput) +add_subdirectory(wayland) # drm autotests are broken on FreeBSD for yet unknown reasons # As the test isn't doing anything platform specific, only run it on Linux if(CMAKE_SYSTEM_NAME MATCHES "Linux") diff --git a/src/wayland/autotests/CMakeLists.txt b/autotests/wayland/CMakeLists.txt similarity index 100% rename from src/wayland/autotests/CMakeLists.txt rename to autotests/wayland/CMakeLists.txt diff --git a/src/wayland/autotests/client/CMakeLists.txt b/autotests/wayland/client/CMakeLists.txt similarity index 98% rename from src/wayland/autotests/client/CMakeLists.txt rename to autotests/wayland/client/CMakeLists.txt index 06fa2dc8a8..3a456c6c05 100644 --- a/src/wayland/autotests/client/CMakeLists.txt +++ b/autotests/wayland/client/CMakeLists.txt @@ -3,7 +3,7 @@ ######################################################## set( testWaylandOutput_SRCS test_wayland_output.cpp - ../../tests/fakeoutput.cpp + ${PROJECT_SOURCE_DIR}/tests/fakeoutput.cpp ) add_executable(testWaylandOutput ${testWaylandOutput_SRCS}) target_link_libraries( testWaylandOutput Qt::Test Qt::Gui KF6::WaylandClient kwin Wayland::Client Wayland::Server) @@ -15,7 +15,7 @@ ecm_mark_as_test(testWaylandOutput) ######################################################## set( testWaylandSurface_SRCS test_wayland_surface.cpp - ../../tests/fakeoutput.cpp + ${PROJECT_SOURCE_DIR}/tests/fakeoutput.cpp ) add_executable(testWaylandSurface ${testWaylandSurface_SRCS}) target_link_libraries( testWaylandSurface Qt::Test Qt::Gui KF6::WaylandClient kwin Wayland::Client Wayland::Server) @@ -217,7 +217,10 @@ ecm_mark_as_test(testXdgForeign) ######################################################## # Test XdgShell ######################################################## -set(testXdgShell_SRCS test_xdg_shell.cpp ../../tests/fakeoutput.cpp) +set(testXdgShell_SRCS + test_xdg_shell.cpp + ${PROJECT_SOURCE_DIR}/tests/fakeoutput.cpp +) add_executable(testXdgShell ${testXdgShell_SRCS}) target_link_libraries( testXdgShell Qt::Test Qt::Gui kwin KF6::WaylandClient Wayland::Client) add_test(NAME kwayland-testXdgShell COMMAND testXdgShell) @@ -294,7 +297,7 @@ ecm_mark_as_test(testPlasmaActivities) ######################################################## set( testXdgOutput_SRCS test_xdg_output.cpp - ../../tests/fakeoutput.cpp + ${PROJECT_SOURCE_DIR}/tests/fakeoutput.cpp ) add_executable(testXdgOutput ${testXdgOutput_SRCS}) target_link_libraries( testXdgOutput Qt::Test Qt::Gui KF6::WaylandClient kwin Wayland::Client Wayland::Server) diff --git a/src/wayland/autotests/client/test_datadevice.cpp b/autotests/wayland/client/test_datadevice.cpp similarity index 100% rename from src/wayland/autotests/client/test_datadevice.cpp rename to autotests/wayland/client/test_datadevice.cpp diff --git a/src/wayland/autotests/client/test_datasource.cpp b/autotests/wayland/client/test_datasource.cpp similarity index 100% rename from src/wayland/autotests/client/test_datasource.cpp rename to autotests/wayland/client/test_datasource.cpp diff --git a/src/wayland/autotests/client/test_drag_drop.cpp b/autotests/wayland/client/test_drag_drop.cpp similarity index 100% rename from src/wayland/autotests/client/test_drag_drop.cpp rename to autotests/wayland/client/test_drag_drop.cpp diff --git a/src/wayland/autotests/client/test_error.cpp b/autotests/wayland/client/test_error.cpp similarity index 100% rename from src/wayland/autotests/client/test_error.cpp rename to autotests/wayland/client/test_error.cpp diff --git a/src/wayland/autotests/client/test_plasma_activities.cpp b/autotests/wayland/client/test_plasma_activities.cpp similarity index 100% rename from src/wayland/autotests/client/test_plasma_activities.cpp rename to autotests/wayland/client/test_plasma_activities.cpp diff --git a/src/wayland/autotests/client/test_plasma_virtual_desktop.cpp b/autotests/wayland/client/test_plasma_virtual_desktop.cpp similarity index 100% rename from src/wayland/autotests/client/test_plasma_virtual_desktop.cpp rename to autotests/wayland/client/test_plasma_virtual_desktop.cpp diff --git a/src/wayland/autotests/client/test_plasmashell.cpp b/autotests/wayland/client/test_plasmashell.cpp similarity index 100% rename from src/wayland/autotests/client/test_plasmashell.cpp rename to autotests/wayland/client/test_plasmashell.cpp diff --git a/src/wayland/autotests/client/test_pointer_constraints.cpp b/autotests/wayland/client/test_pointer_constraints.cpp similarity index 100% rename from src/wayland/autotests/client/test_pointer_constraints.cpp rename to autotests/wayland/client/test_pointer_constraints.cpp diff --git a/src/wayland/autotests/client/test_selection.cpp b/autotests/wayland/client/test_selection.cpp similarity index 100% rename from src/wayland/autotests/client/test_selection.cpp rename to autotests/wayland/client/test_selection.cpp diff --git a/src/wayland/autotests/client/test_server_side_decoration.cpp b/autotests/wayland/client/test_server_side_decoration.cpp similarity index 100% rename from src/wayland/autotests/client/test_server_side_decoration.cpp rename to autotests/wayland/client/test_server_side_decoration.cpp diff --git a/src/wayland/autotests/client/test_server_side_decoration_palette.cpp b/autotests/wayland/client/test_server_side_decoration_palette.cpp similarity index 100% rename from src/wayland/autotests/client/test_server_side_decoration_palette.cpp rename to autotests/wayland/client/test_server_side_decoration_palette.cpp diff --git a/src/wayland/autotests/client/test_shadow.cpp b/autotests/wayland/client/test_shadow.cpp similarity index 100% rename from src/wayland/autotests/client/test_shadow.cpp rename to autotests/wayland/client/test_shadow.cpp diff --git a/src/wayland/autotests/client/test_shm_pool.cpp b/autotests/wayland/client/test_shm_pool.cpp similarity index 100% rename from src/wayland/autotests/client/test_shm_pool.cpp rename to autotests/wayland/client/test_shm_pool.cpp diff --git a/src/wayland/autotests/client/test_text_input_v2.cpp b/autotests/wayland/client/test_text_input_v2.cpp similarity index 100% rename from src/wayland/autotests/client/test_text_input_v2.cpp rename to autotests/wayland/client/test_text_input_v2.cpp diff --git a/src/wayland/autotests/client/test_wayland_appmenu.cpp b/autotests/wayland/client/test_wayland_appmenu.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_appmenu.cpp rename to autotests/wayland/client/test_wayland_appmenu.cpp diff --git a/src/wayland/autotests/client/test_wayland_blur.cpp b/autotests/wayland/client/test_wayland_blur.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_blur.cpp rename to autotests/wayland/client/test_wayland_blur.cpp diff --git a/src/wayland/autotests/client/test_wayland_contrast.cpp b/autotests/wayland/client/test_wayland_contrast.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_contrast.cpp rename to autotests/wayland/client/test_wayland_contrast.cpp diff --git a/src/wayland/autotests/client/test_wayland_filter.cpp b/autotests/wayland/client/test_wayland_filter.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_filter.cpp rename to autotests/wayland/client/test_wayland_filter.cpp diff --git a/src/wayland/autotests/client/test_wayland_output.cpp b/autotests/wayland/client/test_wayland_output.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_output.cpp rename to autotests/wayland/client/test_wayland_output.cpp diff --git a/src/wayland/autotests/client/test_wayland_seat.cpp b/autotests/wayland/client/test_wayland_seat.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_seat.cpp rename to autotests/wayland/client/test_wayland_seat.cpp diff --git a/src/wayland/autotests/client/test_wayland_slide.cpp b/autotests/wayland/client/test_wayland_slide.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_slide.cpp rename to autotests/wayland/client/test_wayland_slide.cpp diff --git a/src/wayland/autotests/client/test_wayland_subsurface.cpp b/autotests/wayland/client/test_wayland_subsurface.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_subsurface.cpp rename to autotests/wayland/client/test_wayland_subsurface.cpp diff --git a/src/wayland/autotests/client/test_wayland_surface.cpp b/autotests/wayland/client/test_wayland_surface.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_surface.cpp rename to autotests/wayland/client/test_wayland_surface.cpp diff --git a/src/wayland/autotests/client/test_wayland_windowmanagement.cpp b/autotests/wayland/client/test_wayland_windowmanagement.cpp similarity index 100% rename from src/wayland/autotests/client/test_wayland_windowmanagement.cpp rename to autotests/wayland/client/test_wayland_windowmanagement.cpp diff --git a/src/wayland/autotests/client/test_xdg_decoration.cpp b/autotests/wayland/client/test_xdg_decoration.cpp similarity index 100% rename from src/wayland/autotests/client/test_xdg_decoration.cpp rename to autotests/wayland/client/test_xdg_decoration.cpp diff --git a/src/wayland/autotests/client/test_xdg_foreign.cpp b/autotests/wayland/client/test_xdg_foreign.cpp similarity index 100% rename from src/wayland/autotests/client/test_xdg_foreign.cpp rename to autotests/wayland/client/test_xdg_foreign.cpp diff --git a/src/wayland/autotests/client/test_xdg_output.cpp b/autotests/wayland/client/test_xdg_output.cpp similarity index 100% rename from src/wayland/autotests/client/test_xdg_output.cpp rename to autotests/wayland/client/test_xdg_output.cpp diff --git a/src/wayland/autotests/client/test_xdg_shell.cpp b/autotests/wayland/client/test_xdg_shell.cpp similarity index 100% rename from src/wayland/autotests/client/test_xdg_shell.cpp rename to autotests/wayland/client/test_xdg_shell.cpp diff --git a/src/wayland/autotests/server/CMakeLists.txt b/autotests/wayland/server/CMakeLists.txt similarity index 97% rename from src/wayland/autotests/server/CMakeLists.txt rename to autotests/wayland/server/CMakeLists.txt index 52a73210f4..c41bf754bd 100644 --- a/src/wayland/autotests/server/CMakeLists.txt +++ b/autotests/wayland/server/CMakeLists.txt @@ -92,7 +92,11 @@ qt6_generate_wayland_protocol_client_sources(testInputMethodInterface FILES ${WaylandProtocols_DATADIR}/unstable/input-method/input-method-unstable-v1.xml ) -target_sources(testInputMethodInterface PRIVATE test_inputmethod_interface.cpp ../../tests/fakeoutput.cpp ${INPUTMETHOD_SRCS}) +target_sources(testInputMethodInterface PRIVATE + test_inputmethod_interface.cpp + ${PROJECT_SOURCE_DIR}/tests/fakeoutput.cpp + ${INPUTMETHOD_SRCS} +) target_link_libraries(testInputMethodInterface Qt::Test kwin KF6::WaylandClient Wayland::Client) add_test(NAME kwayland-testInputMethodInterface COMMAND testInputMethodInterface) ecm_mark_as_test(testInputMethodInterface) diff --git a/src/wayland/autotests/server/test_datacontrol_interface.cpp b/autotests/wayland/server/test_datacontrol_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_datacontrol_interface.cpp rename to autotests/wayland/server/test_datacontrol_interface.cpp diff --git a/src/wayland/autotests/server/test_display.cpp b/autotests/wayland/server/test_display.cpp similarity index 100% rename from src/wayland/autotests/server/test_display.cpp rename to autotests/wayland/server/test_display.cpp diff --git a/src/wayland/autotests/server/test_inputmethod_interface.cpp b/autotests/wayland/server/test_inputmethod_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_inputmethod_interface.cpp rename to autotests/wayland/server/test_inputmethod_interface.cpp diff --git a/src/wayland/autotests/server/test_keyboard_shortcuts_inhibitor_interface.cpp b/autotests/wayland/server/test_keyboard_shortcuts_inhibitor_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_keyboard_shortcuts_inhibitor_interface.cpp rename to autotests/wayland/server/test_keyboard_shortcuts_inhibitor_interface.cpp diff --git a/src/wayland/autotests/server/test_layershellv1_interface.cpp b/autotests/wayland/server/test_layershellv1_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_layershellv1_interface.cpp rename to autotests/wayland/server/test_layershellv1_interface.cpp diff --git a/src/wayland/autotests/server/test_no_xdg_runtime_dir.cpp b/autotests/wayland/server/test_no_xdg_runtime_dir.cpp similarity index 100% rename from src/wayland/autotests/server/test_no_xdg_runtime_dir.cpp rename to autotests/wayland/server/test_no_xdg_runtime_dir.cpp diff --git a/src/wayland/autotests/server/test_screencast.cpp b/autotests/wayland/server/test_screencast.cpp similarity index 100% rename from src/wayland/autotests/server/test_screencast.cpp rename to autotests/wayland/server/test_screencast.cpp diff --git a/src/wayland/autotests/server/test_seat.cpp b/autotests/wayland/server/test_seat.cpp similarity index 100% rename from src/wayland/autotests/server/test_seat.cpp rename to autotests/wayland/server/test_seat.cpp diff --git a/src/wayland/autotests/server/test_tablet_interface.cpp b/autotests/wayland/server/test_tablet_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_tablet_interface.cpp rename to autotests/wayland/server/test_tablet_interface.cpp diff --git a/src/wayland/autotests/server/test_textinputv1_interface.cpp b/autotests/wayland/server/test_textinputv1_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_textinputv1_interface.cpp rename to autotests/wayland/server/test_textinputv1_interface.cpp diff --git a/src/wayland/autotests/server/test_textinputv3_interface.cpp b/autotests/wayland/server/test_textinputv3_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_textinputv3_interface.cpp rename to autotests/wayland/server/test_textinputv3_interface.cpp diff --git a/src/wayland/autotests/server/test_viewporter_interface.cpp b/autotests/wayland/server/test_viewporter_interface.cpp similarity index 100% rename from src/wayland/autotests/server/test_viewporter_interface.cpp rename to autotests/wayland/server/test_viewporter_interface.cpp diff --git a/src/wayland/CMakeLists.txt b/src/wayland/CMakeLists.txt index 6936def7a7..bfec8f9c91 100644 --- a/src/wayland/CMakeLists.txt +++ b/src/wayland/CMakeLists.txt @@ -1,10 +1,5 @@ add_subdirectory(tools) -if (BUILD_TESTING) - add_subdirectory(autotests) - add_subdirectory(tests) -endif() - # CMake has a known bug where target_source() doesn't work as expected with files generated # in a directory other than the one where the target is defined. It should be fixed in 3.20. add_library(WaylandProtocols_xml OBJECT) diff --git a/src/wayland/tests/CMakeLists.txt b/src/wayland/tests/CMakeLists.txt deleted file mode 100644 index d8ce6f57e1..0000000000 --- a/src/wayland/tests/CMakeLists.txt +++ /dev/null @@ -1,65 +0,0 @@ -include(ECMMarkAsTest) - -# find_package(Qt6Core ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENT Private _check_private) -include_directories(SYSTEM ${Qt6Core_PRIVATE_INCLUDE_DIRS}) -set(testServer_SRCS - waylandservertest.cpp - fakeoutput.cpp - ) -add_executable(testServer ${testServer_SRCS}) -target_link_libraries(testServer kwin Qt::CorePrivate) -ecm_mark_as_test(testServer) - -find_package(Qt6Widgets ${QT_MIN_VERSION} CONFIG QUIET) -if (TARGET Qt::Widgets) - set(testRenderingServer_SRCS - renderingservertest.cpp - fakeoutput.cpp - ) - add_executable(testRenderingServer ${testRenderingServer_SRCS}) - target_link_libraries(testRenderingServer kwin Qt::Core Qt::Widgets) - ecm_mark_as_test(testRenderingServer) -endif() - -add_executable(copyClient copyclient.cpp) -target_link_libraries(copyClient KF6::WaylandClient) -ecm_mark_as_test(copyClient) - -add_executable(pasteClient pasteclient.cpp) -target_link_libraries(pasteClient Qt::Core KF6::WaylandClient) -ecm_mark_as_test(pasteClient) - -add_executable(touchClientTest touchclienttest.cpp) -target_link_libraries(touchClientTest KF6::WaylandClient) - -add_executable(panelTest paneltest.cpp) -target_link_libraries(panelTest KF6::WaylandClient) -ecm_mark_as_test(panelTest) - -add_executable(subsurface-test subsurfacetest.cpp) -target_link_libraries(subsurface-test Qt::Core Qt::Gui KF6::WaylandClient) -ecm_mark_as_test(subsurface-test) - -add_executable(shadowTest shadowtest.cpp) -target_link_libraries(shadowTest KF6::WaylandClient) -ecm_mark_as_test(shadowTest) - - -if (TARGET Qt::Widgets) - add_executable(dpmsTest dpmstest.cpp) - target_link_libraries(dpmsTest KF6::WaylandClient Qt::Widgets) - ecm_mark_as_test(dpmsTest) -endif() - -add_executable(plasmasurface-test plasmasurfacetest.cpp) -target_link_libraries(plasmasurface-test Qt::Gui KF6::WaylandClient) -ecm_mark_as_test(plasmasurface-test) - -add_executable(xdgforeign-test xdgforeigntest.cpp) -target_link_libraries(xdgforeign-test Qt::Gui KF6::WaylandClient) -ecm_mark_as_test(xdgforeign-test) - -add_executable(xdg-test xdgtest.cpp) -target_link_libraries(xdg-test Qt::Gui KF6::WaylandClient) -ecm_mark_as_test(xdg-test) - diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 832012551f..ad22dcced6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -25,3 +25,67 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(xdgactivationtest-qt6 xdgactivationtest-qt6.cpp) target_link_libraries(xdgactivationtest-qt6 Qt6::Widgets) + +include(ECMMarkAsTest) + +# find_package(Qt6Core ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENT Private _check_private) +include_directories(SYSTEM ${Qt6Core_PRIVATE_INCLUDE_DIRS}) +set(testServer_SRCS + waylandservertest.cpp + fakeoutput.cpp + ) +add_executable(testServer ${testServer_SRCS}) +target_link_libraries(testServer kwin Qt::CorePrivate) +ecm_mark_as_test(testServer) + +find_package(Qt6Widgets ${QT_MIN_VERSION} CONFIG QUIET) +if (TARGET Qt::Widgets) + set(testRenderingServer_SRCS + renderingservertest.cpp + fakeoutput.cpp + ) + add_executable(testRenderingServer ${testRenderingServer_SRCS}) + target_link_libraries(testRenderingServer kwin Qt::Core Qt::Widgets) + ecm_mark_as_test(testRenderingServer) +endif() + +add_executable(copyClient copyclient.cpp) +target_link_libraries(copyClient KF6::WaylandClient) +ecm_mark_as_test(copyClient) + +add_executable(pasteClient pasteclient.cpp) +target_link_libraries(pasteClient Qt::Core KF6::WaylandClient) +ecm_mark_as_test(pasteClient) + +add_executable(touchClientTest touchclienttest.cpp) +target_link_libraries(touchClientTest KF6::WaylandClient) + +add_executable(panelTest paneltest.cpp) +target_link_libraries(panelTest KF6::WaylandClient) +ecm_mark_as_test(panelTest) + +add_executable(subsurface-test subsurfacetest.cpp) +target_link_libraries(subsurface-test Qt::Core Qt::Gui KF6::WaylandClient) +ecm_mark_as_test(subsurface-test) + +add_executable(shadowTest shadowtest.cpp) +target_link_libraries(shadowTest KF6::WaylandClient) +ecm_mark_as_test(shadowTest) + +if (TARGET Qt::Widgets) + add_executable(dpmsTest dpmstest.cpp) + target_link_libraries(dpmsTest KF6::WaylandClient Qt::Widgets) + ecm_mark_as_test(dpmsTest) +endif() + +add_executable(plasmasurface-test plasmasurfacetest.cpp) +target_link_libraries(plasmasurface-test Qt::Gui KF6::WaylandClient) +ecm_mark_as_test(plasmasurface-test) + +add_executable(xdgforeign-test xdgforeigntest.cpp) +target_link_libraries(xdgforeign-test Qt::Gui KF6::WaylandClient) +ecm_mark_as_test(xdgforeign-test) + +add_executable(xdg-test xdgtest.cpp) +target_link_libraries(xdg-test Qt::Gui KF6::WaylandClient) +ecm_mark_as_test(xdg-test) diff --git a/src/wayland/tests/copyclient.cpp b/tests/copyclient.cpp similarity index 100% rename from src/wayland/tests/copyclient.cpp rename to tests/copyclient.cpp diff --git a/src/wayland/tests/dpmstest.cpp b/tests/dpmstest.cpp similarity index 100% rename from src/wayland/tests/dpmstest.cpp rename to tests/dpmstest.cpp diff --git a/src/wayland/tests/fakeoutput.cpp b/tests/fakeoutput.cpp similarity index 100% rename from src/wayland/tests/fakeoutput.cpp rename to tests/fakeoutput.cpp diff --git a/src/wayland/tests/fakeoutput.h b/tests/fakeoutput.h similarity index 100% rename from src/wayland/tests/fakeoutput.h rename to tests/fakeoutput.h diff --git a/src/wayland/tests/paneltest.cpp b/tests/paneltest.cpp similarity index 100% rename from src/wayland/tests/paneltest.cpp rename to tests/paneltest.cpp diff --git a/src/wayland/tests/pasteclient.cpp b/tests/pasteclient.cpp similarity index 100% rename from src/wayland/tests/pasteclient.cpp rename to tests/pasteclient.cpp diff --git a/src/wayland/tests/plasmasurfacetest.cpp b/tests/plasmasurfacetest.cpp similarity index 100% rename from src/wayland/tests/plasmasurfacetest.cpp rename to tests/plasmasurfacetest.cpp diff --git a/src/wayland/tests/renderingservertest.cpp b/tests/renderingservertest.cpp similarity index 97% rename from src/wayland/tests/renderingservertest.cpp rename to tests/renderingservertest.cpp index 986b2aeeb3..ca2814871c 100644 --- a/src/wayland/tests/renderingservertest.cpp +++ b/tests/renderingservertest.cpp @@ -4,15 +4,15 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#include "../compositor.h" -#include "../datadevicemanager.h" -#include "../display.h" -#include "../keyboard.h" -#include "../output.h" -#include "../pointer.h" -#include "../seat.h" -#include "../xdgshell.h" #include "core/graphicsbufferview.h" +#include "wayland/compositor.h" +#include "wayland/datadevicemanager.h" +#include "wayland/display.h" +#include "wayland/keyboard.h" +#include "wayland/output.h" +#include "wayland/pointer.h" +#include "wayland/seat.h" +#include "wayland/xdgshell.h" #include "fakeoutput.h" diff --git a/src/wayland/tests/shadowtest.cpp b/tests/shadowtest.cpp similarity index 100% rename from src/wayland/tests/shadowtest.cpp rename to tests/shadowtest.cpp diff --git a/src/wayland/tests/subsurfacetest.cpp b/tests/subsurfacetest.cpp similarity index 100% rename from src/wayland/tests/subsurfacetest.cpp rename to tests/subsurfacetest.cpp diff --git a/src/wayland/tests/touchclienttest.cpp b/tests/touchclienttest.cpp similarity index 100% rename from src/wayland/tests/touchclienttest.cpp rename to tests/touchclienttest.cpp diff --git a/src/wayland/tests/touchclienttest.h b/tests/touchclienttest.h similarity index 100% rename from src/wayland/tests/touchclienttest.h rename to tests/touchclienttest.h diff --git a/src/wayland/tests/waylandservertest.cpp b/tests/waylandservertest.cpp similarity index 95% rename from src/wayland/tests/waylandservertest.cpp rename to tests/waylandservertest.cpp index 6d97e338a7..d6210be373 100644 --- a/src/wayland/tests/waylandservertest.cpp +++ b/tests/waylandservertest.cpp @@ -3,11 +3,11 @@ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ -#include "../compositor.h" -#include "../display.h" -#include "../output.h" -#include "../seat.h" -#include "../xdgshell.h" +#include "wayland/compositor.h" +#include "wayland/display.h" +#include "wayland/output.h" +#include "wayland/seat.h" +#include "wayland/xdgshell.h" #include "fakeoutput.h" diff --git a/src/wayland/tests/xdgforeigntest.cpp b/tests/xdgforeigntest.cpp similarity index 100% rename from src/wayland/tests/xdgforeigntest.cpp rename to tests/xdgforeigntest.cpp diff --git a/src/wayland/tests/xdgtest.cpp b/tests/xdgtest.cpp similarity index 100% rename from src/wayland/tests/xdgtest.cpp rename to tests/xdgtest.cpp