From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0RYw-0004R4-0P for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0RYs-00040G-Rg for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43660) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0RYs-00040A-O6 for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0RYs-00074c-H2 for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:02 -0400 Subject: [bug#28720] [PATCH 01/23] gnu: grantlee: Enable all tests. Resent-Message-ID: From: Hartmut Goebel Date: Fri, 6 Oct 2017 14:16:14 +0200 Message-Id: <20171006121636.30904-2-h.goebel@crazy-compilers.com> In-Reply-To: <20171006121636.30904-1-h.goebel@crazy-compilers.com> References: <20171006121636.30904-1-h.goebel@crazy-compilers.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28720@debbugs.gnu.org * gnu/packages/qt.scm (grantlee)[arguments] <#:phases>'check-setup': New phase, set QT_QPA_PLATFORM=offscreen. <#:phases>'check': Remove phase. --- gnu/packages/qt.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 775982757..6446a1043 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -78,6 +78,7 @@ (sha256 (base32 "1lf9rkv0i0kd7fvpgg5l8jb87zw8dzcwd1liv6hji7g4wlpmfdiq")))) (native-inputs + ;; Optional: lcov and cccc, both are for code coverage `(("doxygen" ,doxygen))) (inputs `(("qtbase" ,qtbase) @@ -86,10 +87,11 @@ (arguments `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda _ - (zero? (system* "ctest" ;; exclude 2 tests which require a display - "-E" "htmlbuildertest|plainmarkupbuildertest"))))))) + (add-before 'check 'check-setup + (lambda _ + ;; make Qt render "offscreen", required for tests + (setenv "QT_QPA_PLATFORM" "offscreen") + #t))))) (home-page "https://github.com/steveire/grantlee") (synopsis "Libraries for text templating with Qt") (description "Grantlee Templates can be used for theming and generation of -- 2.13.5