~ruther/guix-local

02af7ffd4dc1cf4cc72195992c579d77c257fc89 — Zheng Junjie 1 year, 9 months ago e7081e6
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
1 files changed, 9 insertions(+), 2 deletions(-)

M gnu/packages/kde-frameworks.scm
M gnu/packages/kde-frameworks.scm => gnu/packages/kde-frameworks.scm +9 -2
@@ 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