gnu: kwidgetsaddons: Fix test failure.

* gnu/packages/kde-frameworks.scm (kwidgetsaddons)[arguments]:
Enable tests. Set Xvfb pixel depth to 24 bits.
This commit is contained in:
David Craven 2016-08-16 16:20:25 +02:00
parent a7d0154cc5
commit 1f9c92ef5e
No known key found for this signature in database
GPG Key ID: C5E051C79C0BECDB
1 changed files with 5 additions and 5 deletions

View File

@ -817,19 +817,19 @@ represented by a QPoint or a QSize.")
(inputs
`(("qtbase" ,qtbase)))
(arguments
`(#:tests? #f ; FIXME: libGL error: failed to load driver: swrast.
#:phases
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'check-setup
(lambda* _
(setenv "CTEST_OUTPUT_ON_FAILURE" "1") ; enable debug output
(setenv "LIBGL_DEBUG" "verbose") ; enable debug output
(setenv "DBUS_FATAL_WARNINGS" "0")))
(add-before 'check 'start-xorg-server
(lambda* (#:key inputs #:allow-other-keys)
;; The test suite requires a running X server.
;; Xvfb doesn't have proper glx support and needs a pixeldepth
;; of 24 bit to avoid "libGL error: failed to load driver: swrast"
;; "Could not initialize GLX"
(system (string-append (assoc-ref inputs "xorg-server")
"/bin/Xvfb :1 &"))
"/bin/Xvfb :1 -screen 0 640x480x24 &"))
(setenv "DISPLAY" ":1")
#t)))))
(home-page "https://community.kde.org/Frameworks")