gnu: virt-manager: Work towards enabling some tests.
* gnu/packages/virtualization.scm (virt-manager)[arguments]: Set #:test-target to "test_ui", replace the 'check phase. [native-inputs]: Add some inputs required for running tests.
This commit is contained in:
parent
c4b0131010
commit
20f524a44b
1 changed files with 22 additions and 4 deletions
|
@ -655,9 +655,10 @@ virtualization library.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:use-setuptools? #f ; uses custom distutils 'install' command
|
`(#:use-setuptools? #f ; uses custom distutils 'install' command
|
||||||
;; Some of the tests seem to require network access to install virtual
|
#:test-target "test_ui"
|
||||||
;; machines.
|
#:tests? #f ; TODO The tests currently fail
|
||||||
#:tests? #f
|
; RuntimeError: Loop condition wasn't
|
||||||
|
; met
|
||||||
#:imported-modules ((guix build glib-or-gtk-build-system)
|
#:imported-modules ((guix build glib-or-gtk-build-system)
|
||||||
,@%python-build-system-modules)
|
,@%python-build-system-modules)
|
||||||
#:modules ((ice-9 match)
|
#:modules ((ice-9 match)
|
||||||
|
@ -704,6 +705,16 @@ virtualization library.")
|
||||||
,(filter identity paths))))
|
,(filter identity paths))))
|
||||||
bin-files))
|
bin-files))
|
||||||
#t))
|
#t))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(setenv "HOME" "/tmp")
|
||||||
|
(system "Xvfb :1 &")
|
||||||
|
(setenv "DISPLAY" ":1")
|
||||||
|
;; Dogtail requires that Assistive Technology support be enabled
|
||||||
|
(setenv "GTK_MODULES" "gail:atk-bridge")
|
||||||
|
(invoke "dbus-run-session" "--" "python" "setup.py" "test_ui"))
|
||||||
|
#t))
|
||||||
(add-after 'install 'glib-or-gtk-compile-schemas
|
(add-after 'install 'glib-or-gtk-compile-schemas
|
||||||
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
|
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
|
||||||
(add-after 'install 'glib-or-gtk-wrap
|
(add-after 'install 'glib-or-gtk-wrap
|
||||||
|
@ -732,7 +743,14 @@ virtualization library.")
|
||||||
("gobject-introspection" ,gobject-introspection)
|
("gobject-introspection" ,gobject-introspection)
|
||||||
("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
|
("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache
|
||||||
("perl" ,perl) ; pod2man
|
("perl" ,perl) ; pod2man
|
||||||
("intltool" ,intltool)))
|
("intltool" ,intltool)
|
||||||
|
;; The following are required for running the tests
|
||||||
|
;; ("python-dogtail" ,python-dogtail)
|
||||||
|
;; ("xvfb" ,xorg-server-for-tests)
|
||||||
|
;; ("dbus" ,dbus)
|
||||||
|
;; ("at-spi2-core" ,at-spi2-core)
|
||||||
|
;; ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
|
))
|
||||||
(home-page "https://virt-manager.org/")
|
(home-page "https://virt-manager.org/")
|
||||||
(synopsis "Manage virtual machines")
|
(synopsis "Manage virtual machines")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue