[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/17: gnu: girara: Enable tests.
From: |
Marius Bakke |
Subject: |
14/17: gnu: girara: Enable tests. |
Date: |
Wed, 27 Dec 2017 15:07:41 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 7d24c26ed7b67ce1220fee9e5df99d74cb5346e7
Author: Marius Bakke <address@hidden>
Date: Wed Dec 27 01:24:18 2017 +0100
gnu: girara: Enable tests.
* gnu/packages/gtk.scm (girara)[native-inputs]: Add XORG-SERVER.
[arguments]: Add START-XSERVER phase. Remove #:tests?.
---
gnu/packages/gtk.scm | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 1b66222..22343c9 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -16,6 +16,7 @@
;;; Coypright © 2016 ng0 <address@hidden>
;;; Coypright © 2017 Roel Janssen <address@hidden>
;;; Coypright © 2017 Tobias Geerinckx-Rice <address@hidden>
+;;; Coypright © 2017 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1249,7 +1250,8 @@ write GNOME applications.")
(native-inputs `(("pkg-config" ,pkg-config)
("check" ,check)
("gettext" ,gettext-minimal)
- ("glib:bin" ,glib "bin")))
+ ("glib:bin" ,glib "bin")
+ ("xorg-server" ,xorg-server)))
;; Listed in 'Requires.private' of 'girara.pc'.
(propagated-inputs `(("gtk+" ,gtk+)))
(arguments
@@ -1257,9 +1259,18 @@ write GNOME applications.")
`(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
"COLOR=0" "CC=gcc")
#:test-target "test"
- #:tests? #f ; Tests fail with "Gtk cannot open display:"
- #:phases
- (modify-phases %standard-phases (delete 'configure))))
+ #:phases (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)
(home-page "https://pwmt.org/projects/girara/")
(synopsis "Library for minimalistic gtk+3 user interfaces")
- 08/17: gnu: zathura-ps: Update to 0.2.5., (continued)
- 08/17: gnu: zathura-ps: Update to 0.2.5., Marius Bakke, 2017/12/27
- 07/17: gnu: zathura-cb: Update to 0.1.7., Marius Bakke, 2017/12/27
- 06/17: gnu: zathura: Update to 0.3.8., Marius Bakke, 2017/12/27
- 11/17: gnu: zathura-pdf-poppler: Update to 0.2.8., Marius Bakke, 2017/12/27
- 17/17: gnu: xorg-server: Update to 1.19.6., Marius Bakke, 2017/12/27
- 10/17: gnu: zathura-pdf-mupdf: Update to 0.3.2., Marius Bakke, 2017/12/27
- 04/17: gnu: mujs: Update to 1.0.2., Marius Bakke, 2017/12/27
- 15/17: gnu: zathura: Adjust inputs., Marius Bakke, 2017/12/27
- 13/17: gnu: girara: Correct inputs., Marius Bakke, 2017/12/27
- 12/17: gnu: zathura: Enable tests., Marius Bakke, 2017/12/27
- 14/17: gnu: girara: Enable tests.,
Marius Bakke <=
- 16/17: gnu: zathura: Remove superfluous inputs from dependents., Marius Bakke, 2017/12/27