gnu: gcompris-qt: Enable tests.
* gnu/packages/education.scm (gcompris-qt)[arguments]: Add custom phase to start X server before tests. Add configure flag to build tests. Enable tests. [native-inputs]: Add xorg-server.master
parent
3619b26196
commit
7e48e8492a
|
@ -41,6 +41,7 @@
|
||||||
#:use-module (gnu packages qt)
|
#:use-module (gnu packages qt)
|
||||||
#:use-module (gnu packages sdl)
|
#:use-module (gnu packages sdl)
|
||||||
#:use-module (gnu packages texinfo)
|
#:use-module (gnu packages texinfo)
|
||||||
|
#:use-module (gnu packages xorg)
|
||||||
#:use-module (gnu packages xml)
|
#:use-module (gnu packages xml)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
@ -129,6 +130,13 @@ of categories with some of the activities available in that category.
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'start-xorg-server
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
;; The test suite requires a running X server.
|
||||||
|
(system (string-append (assoc-ref inputs "xorg-server")
|
||||||
|
"/bin/Xvfb :1 &"))
|
||||||
|
(setenv "DISPLAY" ":1")
|
||||||
|
#t))
|
||||||
(add-after 'install 'wrap-executable
|
(add-after 'install 'wrap-executable
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
@ -145,13 +153,14 @@ of categories with some of the activities available in that category.
|
||||||
'("qtdeclarative" "qtgraphicaleffects"
|
'("qtdeclarative" "qtgraphicaleffects"
|
||||||
"qtmultimedia" "qtquickcontrols"))))
|
"qtmultimedia" "qtquickcontrols"))))
|
||||||
#t))))
|
#t))))
|
||||||
#:configure-flags (list "-DQML_BOX2D_MODULE=disabled")
|
#:configure-flags (list "-DQML_BOX2D_MODULE=disabled"
|
||||||
#:tests? #f)) ; no test target
|
"-DBUILD_TESTING=TRUE")))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("extra-cmake-modules" ,extra-cmake-modules)
|
`(("extra-cmake-modules" ,extra-cmake-modules)
|
||||||
("gettext" ,gettext-minimal)
|
("gettext" ,gettext-minimal)
|
||||||
("perl" ,perl)
|
("perl" ,perl)
|
||||||
("qttools" ,qttools)))
|
("qttools" ,qttools)
|
||||||
|
("xorg-server" ,xorg-server)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("python-2" ,python-2)
|
`(("python-2" ,python-2)
|
||||||
("qtbase" ,qtbase)
|
("qtbase" ,qtbase)
|
||||||
|
|
Reference in New Issue