diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-10-15 12:59:53 +0800 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-10-15 12:59:53 +0800 |
commit | 02af7ffd4dc1cf4cc72195992c579d77c257fc89 (patch) | |
tree | f0656015af034d094cddc2111c4ffd36cfc95415 /gnu | |
parent | e7081e6a4011b31e82dcafa433e1f2372b00baf3 (diff) | |
download | guix-02af7ffd4dc1cf4cc72195992c579d77c257fc89.tar guix-02af7ffd4dc1cf4cc72195992c579d77c257fc89.tar.gz |
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
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/kde-frameworks.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index e7c8eef775..07b861c672 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -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 |