From bc93c5c6a80e3304e4a21507c5f25f0c97f2f30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 17 Sep 2014 13:24:51 +0200 Subject: [PATCH] Move all files to autotests/server --- src/wayland/autotests/server/CMakeLists.txt | 35 +++++++++++++++++++ .../{ => autotests/server}/test_display.cpp | 0 .../{ => autotests/server}/test_seat.cpp | 0 3 files changed, 35 insertions(+) create mode 100644 src/wayland/autotests/server/CMakeLists.txt rename src/wayland/{ => autotests/server}/test_display.cpp (100%) rename src/wayland/{ => autotests/server}/test_seat.cpp (100%) diff --git a/src/wayland/autotests/server/CMakeLists.txt b/src/wayland/autotests/server/CMakeLists.txt new file mode 100644 index 0000000000..8260e6942d --- /dev/null +++ b/src/wayland/autotests/server/CMakeLists.txt @@ -0,0 +1,35 @@ +######################################################## +# Test WaylandServerDisplay +######################################################## +set( testWaylandServerDisplay_SRCS + test_display.cpp + ${KWIN_SOURCE_DIR}/wayland_server/buffer_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/compositor_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/display.cpp + ${KWIN_SOURCE_DIR}/wayland_server/output_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/seat_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/shell_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/surface_interface.cpp + ) +add_executable(testWaylandServerDisplay ${testWaylandServerDisplay_SRCS}) +target_link_libraries( testWaylandServerDisplay Qt5::Test Qt5::Gui Wayland::Server) +add_test(kwin-testWaylandServerDisplay testWaylandServerDisplay) +ecm_mark_as_test(testWaylandServerDisplay) + +######################################################## +# Test WaylandServerSeat +######################################################## +set( testWaylandServerSeat_SRCS + test_seat.cpp + ${KWIN_SOURCE_DIR}/wayland_server/buffer_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/compositor_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/display.cpp + ${KWIN_SOURCE_DIR}/wayland_server/output_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/seat_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/shell_interface.cpp + ${KWIN_SOURCE_DIR}/wayland_server/surface_interface.cpp + ) +add_executable(testWaylandServerSeat ${testWaylandServerSeat_SRCS}) +target_link_libraries( testWaylandServerSeat Qt5::Test Qt5::Gui Wayland::Server) +add_test(kwin-testWaylandServerSeat testWaylandServerSeat) +ecm_mark_as_test(testWaylandServerSeat) diff --git a/src/wayland/test_display.cpp b/src/wayland/autotests/server/test_display.cpp similarity index 100% rename from src/wayland/test_display.cpp rename to src/wayland/autotests/server/test_display.cpp diff --git a/src/wayland/test_seat.cpp b/src/wayland/autotests/server/test_seat.cpp similarity index 100% rename from src/wayland/test_seat.cpp rename to src/wayland/autotests/server/test_seat.cpp