guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/29: gnu: grantlee: Enable all tests.


From: Hartmut Goebel
Subject: 07/29: gnu: grantlee: Enable all tests.
Date: Fri, 6 Oct 2017 08:15:06 -0400 (EDT)

htgoebel pushed a commit to branch wip-qt-paths
in repository guix.

commit fc4a914dd967740419a221a3a3dfb93f4dd0ebec
Author: Hartmut Goebel <address@hidden>
Date:   Wed Sep 20 13:04:25 2017 +0200

    gnu: grantlee: Enable all tests.
    
    * 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 7759827..6446a10 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]