guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

22/143: gnu: libkscreen: Enable all tests except for 5 failing.


From: guix-commits
Subject: 22/143: gnu: libkscreen: Enable all tests except for 5 failing.
Date: Mon, 21 Nov 2022 16:10:41 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 2ecb9af51c601287523b11c5f3c85d23d1d8fe9a
Author: Petr Hodina <phodina@protonmail.com>
AuthorDate: Wed Sep 28 10:32:48 2022 +0200

    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 <marius@gnu.org>
---
 gnu/packages/kde-plasma.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]