[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36605] [PATCH 3/6] gnu: kpackage: Enable test-suite.
From: |
Hartmut Goebel |
Subject: |
[bug#36605] [PATCH 3/6] gnu: kpackage: Enable test-suite. |
Date: |
Thu, 11 Jul 2019 22:26:37 +0200 |
* gnu/package/kde-frameworks.scm(kpackage)[arguments]
<#:tests?>: Remove. <#:phases>: Add phase 'patch-tests.
---
gnu/packages/kde-frameworks.scm | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 62cf49c57..07e30d4cf 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1834,8 +1834,7 @@ covers feedback and persistent events.")
("ki18n" ,ki18n)
("qtbase" ,qtbase)))
(arguments
- `(#:tests? #f ; FIXME: 3/9 tests fail.
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
@@ -1847,6 +1846,17 @@ covers feedback and persistent events.")
(("^\\s*(QDirIterator it\\(.*,
QDirIterator::Subdirectories)(\\);)" _ a b)
(string-append a " | QDirIterator::FollowSymlinks" b)))
#t))
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ ;; /bin/ls doesn't exist in the build-container use /etc/passwd
+ (substitute* "autotests/packagestructuretest.cpp"
+ (("(addDirectoryDefinition\\(\")bin(\".*\")bin(\".*\")bin\""
+ _ a b c)
+ (string-append a "etc" b "etc" c "etc\""))
+ (("filePath\\(\"bin\", QStringLiteral\\(\"ls\"))")
+ "filePath(\"etc\", QStringLiteral(\"passwd\"))")
+ (("\"/bin/ls\"") "\"/etc/passwd\""))
+ #t))
(add-before 'check 'check-setup
(lambda _
(setenv "HOME" (getcwd))
--
2.13.7
- [bug#36605] [PATCH 04/12] gnu: Add java-plexus-utils., (continued)
- [bug#36605] [PATCH 04/12] gnu: Add java-plexus-utils., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 07/12] gnu: Add java-commons-codec., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 12/12] gnu: Add java-commons-bcel., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 01/12] guix: ant-bulild-sytem: allow specifying the source directory., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 00/12] Java build-system and some packages, Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 1/6] gnu: kcoreaddons: Enable test-suite., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 09/12] gnu: Add java-commons-io., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 11/12] gnu: Add java-commons-lang3., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 2/6] gnu: kirigami: Enable test-suite., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 10/12] gnu: Add java-commons-lang., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 3/6] gnu: kpackage: Enable test-suite.,
Hartmut Goebel <=
- [bug#36605] [PATCH 05/12] gnu: Add java-plexus-interpolation., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 4/6] gnu: kemoticons: Enable test-suite., Hartmut Goebel, 2019/07/11
- [bug#36605] [PATCH 5/6] gnu: knewstuff: Enable test-suite., Hartmut Goebel, 2019/07/11