gnu: korganizer: Fix tests.

* gnu/packages/kde-pim.scm (korganizer)[native-inputs]: Add tzdata-for-tests.
[arguments]: Remove disable-failing-test phase.  Set TZDIR for tests.
This commit is contained in:
宋文武 2023-08-09 18:14:06 +08:00
parent f36c52e076
commit 00efabe6fe
No known key found for this signature in database
GPG key ID: D415BF253B515976

View file

@ -1715,7 +1715,7 @@ (define-public korganizer
(base32 "1vp1jsmna059vvfj7xaj9fhhhq0lz9k0pphczkfbwm3gy6nzcavz"))))
(build-system qt-build-system)
(native-inputs
(list extra-cmake-modules dbus qttools-5 kdoctools))
(list extra-cmake-modules dbus qttools-5 kdoctools tzdata-for-tests))
(inputs
(list akonadi
akonadi-calendar
@ -1767,19 +1767,13 @@ (define-public korganizer
phonon
qtbase-5))
(arguments
`(#:phases
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-test
(lambda _
;; FIXME: This test started failing after the 20.04 update
;; seemingly due to DBus communication issues.
;; See also 'akonadi-search' for a similar test failure.
(substitute* "src/autotests/CMakeLists.txt"
((".*test_advanced\\(koeventpopupmenutest\\.cpp.*")
""))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(lambda* (#:key inputs tests? #:allow-other-keys)
(when tests?
(setenv "TZDIR" (search-input-directory
inputs "share/zoneinfo"))
(invoke "dbus-launch" "ctest")))))))
(home-page "https://apps.kde.org/korganizer/")
(synopsis "Organizational assistant, providing calendars and other similar