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'.master
parent
96ae71f56b
commit
6039031a1a
|
@ -4159,10 +4159,14 @@ faster results and to avoid unnecessary server load.")
|
||||||
#t))))
|
#t))))
|
||||||
(build-system glib-or-gtk-build-system)
|
(build-system glib-or-gtk-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'( ;; The tests want to contact the system bus, which can't be done in the
|
'(#:phases
|
||||||
;; build environment. The integration test can run, but the last of
|
(modify-phases %standard-phases
|
||||||
;; the up-self-tests doesn't. Disable tests for now.
|
(add-before 'check 'pre-check
|
||||||
#:tests? #f
|
(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"
|
#:configure-flags (list "--localstatedir=/var"
|
||||||
(string-append "--with-udevrulesdir="
|
(string-append "--with-udevrulesdir="
|
||||||
(assoc-ref %outputs "out")
|
(assoc-ref %outputs "out")
|
||||||
|
@ -4173,6 +4177,12 @@ faster results and to avoid unnecessary server load.")
|
||||||
("intltool" ,intltool)
|
("intltool" ,intltool)
|
||||||
("python" ,python)
|
("python" ,python)
|
||||||
|
|
||||||
|
;; For tests.
|
||||||
|
("python-dbus" ,python-dbus)
|
||||||
|
("python-dbusmock" ,python-dbusmock)
|
||||||
|
("python-pygobject" ,python-pygobject)
|
||||||
|
("umockdev" ,umockdev)
|
||||||
|
|
||||||
;; For man pages.
|
;; For man pages.
|
||||||
("libxslt" ,libxslt) ;for 'xsltproc'
|
("libxslt" ,libxslt) ;for 'xsltproc'
|
||||||
("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
|
("libxml2" ,libxml2) ;for 'XML_CATALOG_FILES'
|
||||||
|
|
Reference in New Issue