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.
This commit is contained in:
parent
61cc757d5f
commit
868b1a025a
|
@ -78,6 +78,7 @@
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1lf9rkv0i0kd7fvpgg5l8jb87zw8dzcwd1liv6hji7g4wlpmfdiq"))))
|
(base32 "1lf9rkv0i0kd7fvpgg5l8jb87zw8dzcwd1liv6hji7g4wlpmfdiq"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
;; Optional: lcov and cccc, both are for code coverage
|
||||||
`(("doxygen" ,doxygen)))
|
`(("doxygen" ,doxygen)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("qtbase" ,qtbase)
|
`(("qtbase" ,qtbase)
|
||||||
|
@ -86,10 +87,11 @@
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(add-before 'check 'check-setup
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero? (system* "ctest" ;; exclude 2 tests which require a display
|
;; make Qt render "offscreen", required for tests
|
||||||
"-E" "htmlbuildertest|plainmarkupbuildertest")))))))
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
||||||
|
#t)))))
|
||||||
(home-page "https://github.com/steveire/grantlee")
|
(home-page "https://github.com/steveire/grantlee")
|
||||||
(synopsis "Libraries for text templating with Qt")
|
(synopsis "Libraries for text templating with Qt")
|
||||||
(description "Grantlee Templates can be used for theming and generation of
|
(description "Grantlee Templates can be used for theming and generation of
|
||||||
|
|
Loading…
Reference in New Issue