gnu: girara: Enable tests.
* gnu/packages/gtk.scm (girara)[native-inputs]: Add XORG-SERVER. [arguments]: Add START-XSERVER phase. Remove #:tests?.
This commit is contained in:
parent
b82d5b09ff
commit
7d24c26ed7
|
@ -16,6 +16,7 @@
|
||||||
;;; Coypright © 2016 ng0 <ng0@we.make.ritual.n0.is>
|
;;; Coypright © 2016 ng0 <ng0@we.make.ritual.n0.is>
|
||||||
;;; Coypright © 2017 Roel Janssen <roel@gnu.org>
|
;;; Coypright © 2017 Roel Janssen <roel@gnu.org>
|
||||||
;;; Coypright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Coypright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
|
;;; Coypright © 2017 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -1249,7 +1250,8 @@ write GNOME applications.")
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)
|
(native-inputs `(("pkg-config" ,pkg-config)
|
||||||
("check" ,check)
|
("check" ,check)
|
||||||
("gettext" ,gettext-minimal)
|
("gettext" ,gettext-minimal)
|
||||||
("glib:bin" ,glib "bin")))
|
("glib:bin" ,glib "bin")
|
||||||
|
("xorg-server" ,xorg-server)))
|
||||||
;; Listed in 'Requires.private' of 'girara.pc'.
|
;; Listed in 'Requires.private' of 'girara.pc'.
|
||||||
(propagated-inputs `(("gtk+" ,gtk+)))
|
(propagated-inputs `(("gtk+" ,gtk+)))
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -1257,9 +1259,18 @@ write GNOME applications.")
|
||||||
`(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
|
`(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||||
"COLOR=0" "CC=gcc")
|
"COLOR=0" "CC=gcc")
|
||||||
#:test-target "test"
|
#:test-target "test"
|
||||||
#:tests? #f ; Tests fail with "Gtk cannot open display:"
|
#:phases (modify-phases %standard-phases
|
||||||
#:phases
|
(delete 'configure)
|
||||||
(modify-phases %standard-phases (delete 'configure))))
|
(add-before 'check 'start-xserver
|
||||||
|
;; Tests require a running X server.
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((xorg-server (assoc-ref inputs "xorg-server"))
|
||||||
|
(display ":1"))
|
||||||
|
(setenv "DISPLAY" display)
|
||||||
|
;; Don't fail due to missing '/etc/machine-id'.
|
||||||
|
(setenv "DBUS_FATAL_WARNINGS" "0")
|
||||||
|
(zero? (system (string-append xorg-server "/bin/Xvfb "
|
||||||
|
display " &")))))))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(home-page "https://pwmt.org/projects/girara/")
|
(home-page "https://pwmt.org/projects/girara/")
|
||||||
(synopsis "Library for minimalistic gtk+3 user interfaces")
|
(synopsis "Library for minimalistic gtk+3 user interfaces")
|
||||||
|
|
Loading…
Reference in New Issue