From d4d32870e6f95b021f9cb5812c190778afec4d98 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Thu, 16 Nov 2017 23:40:06 +0100 Subject: [PATCH] Fix testWaylandFullscreenShell. Summary: This test needs the weston executable. Skip the test if the program wasn't found. Reviewers: graesslin Reviewed By: graesslin Subscribers: plasma-devel, #frameworks Tags: #plasma_on_wayland, #frameworks Differential Revision: https://phabricator.kde.org/D8858 --- src/wayland/autotests/client/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wayland/autotests/client/CMakeLists.txt b/src/wayland/autotests/client/CMakeLists.txt index b00e9facb7..5e6d8541a7 100644 --- a/src/wayland/autotests/client/CMakeLists.txt +++ b/src/wayland/autotests/client/CMakeLists.txt @@ -24,6 +24,8 @@ ecm_mark_as_test(testWaylandRegistry) # Test WaylandFullscreenShell ######################################################## if(Wayland_VERSION VERSION_GREATER "1.4.0") + find_program(WESTON_EXECUTABLE weston DOC "Path to the weston executable.") + if(WESTON_EXECUTABLE) set( testWaylandFullscreenShell_SRCS test_wayland_fullscreen_shell.cpp ) @@ -31,6 +33,9 @@ if(Wayland_VERSION VERSION_GREATER "1.4.0") target_link_libraries( testWaylandFullscreenShell Qt5::Test KF5::WaylandClient Wayland::Client) add_test(NAME kwayland-testWaylandFullscreenShell COMMAND testWaylandFullscreenShell) ecm_mark_as_test(testWaylandFullscreenShell) + else() + message(STATUS "The weston executable was not found. Some autotests will not be executed.") + endif() endif() ########################################################