gnu: qqc2-desktop-style: Fix tests.

* gnu/packages/kde-frameworks.scm (qqc2-desktop-style)[arguments]: Enable
tests.
<#:phases>: Move check phase after install. Set QML_IMPORT_PATH,
QT_PLUGIN_PATH,HOME environment variables.

Change-Id: Ic96e6a72d4b4cec01a458ae70f6e46a508cf2362
This commit is contained in:
Zheng Junjie 2024-10-15 12:59:53 +08:00
parent e7081e6a40
commit 02af7ffd4d
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -1971,12 +1971,19 @@ libpulse.")
(build-system qt-build-system)
(arguments
(list
#:tests? #f ; FIXME: 1/2 tests fail.
#:qtbase qtbase
#:phases #~(modify-phases %standard-phases
(replace 'check
(delete 'check) ;; move after the install phase
(add-after 'install 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "QML_IMPORT_PATH"
(string-append #$output "/lib/qt6/qml:"
(getenv "QML_IMPORT_PATH")))
(setenv "QT_PLUGIN_PATH"
(string-append #$output "/lib/qt6/plugins:"
(getenv "QT_PLUGIN_PATH")))
(setenv "HOME" (getcwd))
(invoke "dbus-launch" "ctest"
"--rerun-failed" "--output-on-failure")))))))
(native-inputs