unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH core-updates] guix: cmake-build-system: Enable offscreen Qt backend for tests.
@ 2017-01-25 20:51 Danny Milosavljevic
  2017-01-25 20:57 ` Danny Milosavljevic
  2017-01-26  9:59 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Danny Milosavljevic @ 2017-01-25 20:51 UTC (permalink / raw)
  To: guix-devel

* guix/build/cmake-build-system.scm (cmake-build-system): Set QT_QPA_PLATFORM to "offscreen".
---
 guix/build/cmake-build-system.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm
index 27f2b5c87..dfe61ce56 100644
--- a/guix/build/cmake-build-system.scm
+++ b/guix/build/cmake-build-system.scm
@@ -67,6 +67,8 @@
                 #:allow-other-keys)
   (let ((gnu-check (assoc-ref gnu:%standard-phases 'check)))
     (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
+    ;; Automated tests can't access user's X session anyway
+    (setenv "QT_QPA_PLATFORM" "offscreen")
     (gnu-check #:tests? tests? #:test-target test-target
               #:parallel-tests? parallel-tests?)))
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-26  9:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-25 20:51 [PATCH core-updates] guix: cmake-build-system: Enable offscreen Qt backend for tests Danny Milosavljevic
2017-01-25 20:57 ` Danny Milosavljevic
2017-01-26  9:59 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).