From 02af7ffd4dc1cf4cc72195992c579d77c257fc89 Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Tue, 15 Oct 2024 12:59:53 +0800 Subject: 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 --- gnu/packages/kde-frameworks.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gnu') 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 @@ (define-public qqc2-desktop-style (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 -- cgit v1.2.3