me
/
guix
Archived
1
0
Fork 0

gnu: at-spi2-core: Skip tests on powerpc-linux.

* gnu/packages/gtk.scm (at-spi2-core)[arguments]: When building for
powerpc-linux skip the custom 'check phase.

Change-Id: I8c609c1cb6eb8b03746e294f7b8e3d0792c43443
master
Efraim Flashner 2023-10-23 10:40:27 +03:00
parent dae956e796
commit 9210ca9b04
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 23 additions and 16 deletions

View File

@ -803,12 +803,18 @@ ever use this library.")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(delete 'check) (delete 'check)
(add-after 'install 'check ;; The CI test suite fails completely on powerpc-linux.
;; The name org.gnome.SessionManager was not provided by any .service
;; TODO: Wrap 'check phase with 'tests?'.
#$@(if (not (target-ppc32?))
#~((add-after 'install 'check
(lambda _ (lambda _
(setenv "HOME" (getenv "TMPDIR")) ;xfconfd requires a writable HOME ;; xfconfd requires a writable HOME
(setenv "HOME" (getenv "TMPDIR"))
;; Run test-suite under a dbus session. ;; Run test-suite under a dbus session.
(setenv "XDG_DATA_DIRS" ;for finding org.xfce.Xfconf.service (setenv "XDG_DATA_DIRS" ;for finding org.xfce.Xfconf.service
(string-append #$output "/share:" (getenv "XDG_DATA_DIRS"))) (string-append #$output "/share:"
(getenv "XDG_DATA_DIRS")))
;; Don't fail on missing '/etc/machine-id'. ;; Don't fail on missing '/etc/machine-id'.
(setenv "DBUS_FATAL_WARNINGS" "0") (setenv "DBUS_FATAL_WARNINGS" "0")
(with-directory-excursion (string-append "../at-spi2-core-" (with-directory-excursion (string-append "../at-spi2-core-"
@ -818,7 +824,8 @@ ever use this library.")
(("ps auxwww") "") ;avoid a dependency on procps (("ps auxwww") "") ;avoid a dependency on procps
(("meson test -C _build") (("meson test -C _build")
"meson test -C ../build")) ;adjust build directory "meson test -C ../build")) ;adjust build directory
(invoke "dbus-run-session" "--" "ci/run-tests.sh"))))))) (invoke "dbus-run-session" "--" "ci/run-tests.sh")))))
#~()))))
(inputs (inputs
(list bash-minimal libxml2)) (list bash-minimal libxml2))
(propagated-inputs (propagated-inputs