[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29114] [PATCH 05/10] gnu: krunner: Make some tests pass.
From: |
Hartmut Goebel |
Subject: |
[bug#29114] [PATCH 05/10] gnu: krunner: Make some tests pass. |
Date: |
Thu, 2 Nov 2017 09:47:45 +0100 |
* gnu/packages/kde-frameworks.scm[arguments]
<#:tests?>: Remove.
<#:phases>[fix-paths-for-test'] New phase.
<#:phases>[check-setup]: Set $HOME. Blacklist a failing new-in-5.39.0 test.
---
gnu/packages/kde-frameworks.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 6f261afd1..78290cf1a 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2747,13 +2747,26 @@ to easily extend the contacts collection.")
("solid" ,solid)
("threadweaver" ,threadweaver)))
(arguments
- `(#:tests? #f ; FIXME: 1/1 tests fail.
- #:phases
+ `(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths-for-test
+ ;; This test tries to access paths like /home, /usr/bin and /bin/ls
+ ;; which don't exist in the build-container. Change to existing
paths.
+ (lambda _
+ (substitute* "autotests/runnercontexttest.cpp"
+ (("/home\"") "/tmp\"") ;; single path-part
+ (("//usr/bin\"") (string-append (getcwd) "\"")) ;; multiple
path-parts
+ (("/bin/ls" path)
+ (string-append (assoc-ref %build-inputs "coreutils") path)))))
(add-before 'check 'check-setup
(lambda _
+ (setenv "HOME" (getcwd))
;; make Qt render "offscreen", required for tests
(setenv "QT_QPA_PLATFORM" "offscreen")
+ ;; Blacklist a failing test-function. TODO: Make it pass.
+ (with-output-to-file "bin/BLACKLIST"
+ (lambda _
+ (display "[testMatch]\n*\n")))
#t)))))
(home-page "https://community.kde.org/Frameworks")
(synopsis "Framework for Plasma runners")
--
2.13.5
- [bug#29114] [PATCH 01/10] gnu: extra-cmake-modules: Install pri-files into lib/qt5/., (continued)
- [bug#29114] [PATCH 01/10] gnu: extra-cmake-modules: Install pri-files into lib/qt5/., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 04/10] gnu: kdelibs4support: Make test kstandarddirstest pass., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 10/10] gnu: prison: Move to be in alphabetical order., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 08/10] gnu: kactivities: Move to tier 2., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 03/10] gnu: kimageformats: Update comment., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 09/10] gnu: kdewebkit: Move to be in alphabetical order., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 06/10] gnu: solid: Enable building interface for qml., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 05/10] gnu: krunner: Make some tests pass.,
Hartmut Goebel <=
- [bug#29114] [PATCH 02/10] gnu: kde-frameworks: Update to 5.39.0., Hartmut Goebel, 2017/11/02
- [bug#29114] [PATCH 00/10] KDE Updates and cleanups, Marius Bakke, 2017/11/02
- Message not available