gnu: kwayland: Use qt-build-system and enable all tests.

* gnu/packages/kde-frameworks.scm (kwayland)[build-system]: Change to
QT-BUILD-SYSTEM to avoid overriding the check phase, and to get verbose output
on failure.
[arguments]: Add #:parallel-build?.  Remove skip-specific-tests phase.  Don't
override check phase, but add new to set XDG_RUNTIME_DIR.
This commit is contained in:
Marius Bakke 2022-10-16 01:12:35 +02:00
parent c567a82a69
commit 617c083e7b
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1047,25 +1047,20 @@ (define-public kwayland
(sha256 (sha256
(base32 (base32
"0dcnsiippwxvwvf1gvp75lx97c4nydzn3x1l8lfy86w9lfslw7zb")))) "0dcnsiippwxvwvf1gvp75lx97c4nydzn3x1l8lfy86w9lfslw7zb"))))
(build-system cmake-build-system) (build-system qt-build-system)
(native-inputs (native-inputs
(list extra-cmake-modules pkg-config)) (list extra-cmake-modules pkg-config))
(inputs (inputs
(list qtbase-5 plasma-wayland-protocols qtwayland-5 wayland wayland-protocols)) (list qtbase-5 plasma-wayland-protocols qtwayland-5 wayland wayland-protocols))
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases ;; Tests spawn Wayland sessions that cannot run in parallel.
(add-after 'unpack 'skip-specific-tests #:parallel-tests? #f
(lambda _ #:phases
;; PlasmaWindowModelTest::testChangeWindowAfterModelDestroy(icon) #~(modify-phases %standard-phases
(substitute* "autotests/client/test_plasma_window_model.cpp" (add-before 'check 'set-XDG_RUNTIME_DIR
((".*changedSpy\\.wait.*") "")))) (lambda _
(replace 'check (setenv "XDG_RUNTIME_DIR" (getcwd)))))))
(lambda* (#:key tests? #:allow-other-keys)
(setenv "XDG_RUNTIME_DIR" (getcwd))
(setenv "QT_QPA_PLATFORM" "offscreen")
(when tests? ;; One test fails.
(invoke "ctest" "-E" "kwayland-testWaylandRegistry")))))))
(home-page "https://community.kde.org/Frameworks") (home-page "https://community.kde.org/Frameworks")
(synopsis "Qt-style API to interact with the wayland client and server") (synopsis "Qt-style API to interact with the wayland client and server")
(description "As the names suggest they implement a Client respectively a (description "As the names suggest they implement a Client respectively a