me
/
guix
Archived
1
0
Fork 0

gnu: at-spi2-core: Respect #:tests?.

* gnu/packages/gtk.scm (at-spi2-core)[arguments]<#:phases>{check}:
  Don't run tests if the value of #:tests? if false.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
master
Maxime Devos 2021-10-01 16:21:26 +02:00 committed by Mathieu Othacehe
parent d8ff47a75e
commit 2d9c06c61d
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 3 additions and 2 deletions

View File

@ -768,14 +768,15 @@ scaled, composited, modified, saved, or rendered.")
(string-append out "/share/gtk-doc")))
#t))))
(add-after 'install 'check
(lambda _
(lambda* (#:key tests? #:allow-other-keys)
(setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
;; Run test-suite under a dbus session.
(setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
(string-append %output "/share"))
;; Don't fail on missing '/etc/machine-id'.
(setenv "DBUS_FATAL_WARNINGS" "0") ;
(invoke "dbus-launch" "ninja" "test")))
(when tests?
(invoke "dbus-launch" "ninja" "test"))))
(delete 'check))))
(inputs
`(("bash-minimal" ,bash-minimal)))