mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
e7081e6a40
commit
02af7ffd4d
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue