gnu: kxmlgui: Enable tests.

* gnu/packages/kde-frameworks.scm (kxmlgui): Use gexp.
[arguments]: Enable all but 2 tests.

Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
Petr Hodina 2022-09-28 08:36:22 +02:00 committed by Marius Bakke
parent 27eb4944bb
commit d92e4f59bb
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -3209,7 +3209,7 @@ (define-public kxmlgui
(propagated-inputs
(list kconfig kconfigwidgets))
(native-inputs
(list extra-cmake-modules qttools-5))
(list extra-cmake-modules qttools-5 xorg-server-for-tests))
(inputs
(list attica
kauth
@ -3226,14 +3226,15 @@ (define-public kxmlgui
qtbase-5
sonnet))
(arguments
`(#:tests? #f ; FIXME: 1/5 tests fail.
#:phases
(modify-phases %standard-phases
(add-before 'check 'check-setup
(lambda _
(setenv "HOME" (getcwd))
;; make Qt render "offscreen", required for tests
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" (getcwd))
(setenv "QT_QPA_PLATFORM" "offscreen") ;; These tests fail
(invoke "ctest" "-E"
"(ktoolbar_unittest|kxmlgui_unittest)")))))))
(home-page "https://community.kde.org/Frameworks")
(synopsis "Framework for managing menu and toolbar actions")
(description "KXMLGUI provides a framework for managing menu and toolbar