From 2ecb9af51c601287523b11c5f3c85d23d1d8fe9a Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Wed, 28 Sep 2022 10:32:48 +0200 Subject: gnu: libkscreen: Enable all tests except for 5 failing. * gnu/packages/kde-plasma.scm (libkscreen): Enable all tests except for 5 failing. Signed-off-by: Marius Bakke --- gnu/packages/kde-plasma.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm index 8d80a4686a..f7bc601ffb 100644 --- a/gnu/packages/kde-plasma.scm +++ b/gnu/packages/kde-plasma.scm @@ -265,6 +265,17 @@ call it if it is not associated to a terminal.") (sha256 (base32 "17ib0sgrhmmf3f8w3fni0825xz5581av5vnz8gca41vyf12css25")))) (build-system qt-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" (getcwd)) + (setenv "QT_QPA_PLATFORM" "offscreen") + (setenv "WAYLAND_DISPLAY" "libkscreen-test-wayland-backend-0") + (invoke "ctest" "-E" + "(kscreen-testscreenconfig|kscreen-testqscreenbackend|kscreen-testkwaylandbackend|kscreen-testkwaylandconfig|kscreen-testkwaylanddpms)"))))))) (native-inputs (list extra-cmake-modules pkg-config @@ -273,8 +284,6 @@ call it if it is not associated to a terminal.") (inputs (list kwayland libxrandr plasma-wayland-protocols qtbase-5 qtwayland-5 wayland qtx11extras)) - (arguments - '(#:tests? #f)) ; FIXME: 55% tests passed, 5 tests failed out of 11 (home-page "https://community.kde.org/Solid/Projects/ScreenManagement") (synopsis "KDE's screen management software") (description "KScreen is the new screen management software for KDE Plasma -- cgit v1.2.3