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
This commit is contained in:
parent
ec75361d1f
commit
d4d32870e6
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
||||
########################################################
|
||||
|
|
Loading…
Reference in a new issue