[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: upower: Enable tests.
From: |
guix-commits |
Subject: |
03/06: gnu: upower: Enable tests. |
Date: |
Sat, 23 May 2020 15:51:25 -0400 (EDT) |
bricewge pushed a commit to branch master
in repository guix.
commit 6039031a1a5e1cabd380b8715334d5a8f600055f
Author: Brice Waegeneire <address@hidden>
AuthorDate: Thu May 21 17:04:23 2020 +0200
gnu: upower: Enable tests.
* gnu/packages/gnome.scm (upower)[arguments]: Enable tests and add
phases 'pre-check'.
[native-inputs]: Add 'python-pygobject', 'python-dbus',
'python-dbusmock' and 'umockdev'.
---
gnu/packages/gnome.scm | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index e94d659..5271fe5 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4159,10 +4159,14 @@ faster results and to avoid unnecessary server load.")
#t))))
(build-system glib-or-gtk-build-system)
(arguments
- '( ;; The tests want to contact the system bus, which can't be done in the
- ;; build environment. The integration test can run, but the last of
- ;; the up-self-tests doesn't. Disable tests for now.
- #:tests? #f
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((umockdev (string-append (assoc-ref inputs "umockdev")
+ "/lib")))
+ (setenv "LD_LIBRARY_PATH" umockdev))
+ #t)))
#:configure-flags (list "--localstatedir=/var"
(string-append "--with-udevrulesdir="
(assoc-ref %outputs "out")
@@ -4173,6 +4177,12 @@ faster results and to avoid unnecessary server load.")
("intltool" ,intltool)
("python" ,python)
+ ;; For tests.
+ ("python-dbus" ,python-dbus)
+ ("python-dbusmock" ,python-dbusmock)
+ ("python-pygobject" ,python-pygobject)
+ ("umockdev" ,umockdev)
+
;; For man pages.
("libxslt" ,libxslt) ;for 'xsltproc'
("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
- branch master updated (5144377 -> e24d311), guix-commits, 2020/05/23
- 02/06: gnu: umockdev: Update to 0.14.1., guix-commits, 2020/05/23
- 01/06: gnu: umockdev: Add 'gobject-introspection'., guix-commits, 2020/05/23
- 03/06: gnu: upower: Enable tests.,
guix-commits <=
- 04/06: gnu: deja-dup: Update to 40.6., guix-commits, 2020/05/23
- 05/06: gnu: dconf: Appease 'guix lint'., guix-commits, 2020/05/23
- 06/06: gnu: gnome-shell: Use libnma., guix-commits, 2020/05/23