From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH core-updates] guix: cmake-build-system: Enable offscreen Qt backend for tests. Date: Wed, 25 Jan 2017 21:51:18 +0100 Message-ID: <20170125205118.15212-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWUXQ-0008E0-Jj for guix-devel@gnu.org; Wed, 25 Jan 2017 15:51:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWUXM-0003pG-JJ for guix-devel@gnu.org; Wed, 25 Jan 2017 15:51:28 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:50438) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWUXM-0003ov-Ci for guix-devel@gnu.org; Wed, 25 Jan 2017 15:51:24 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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?)))