mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: openshot: Enable tests.
* gnu/packages/video.scm (openshot)[arguments]: Add custom 'check phase.
This commit is contained in:
parent
5020a26392
commit
e7228f0cfa
1 changed files with 5 additions and 2 deletions
|
@ -3681,14 +3681,17 @@ (define-public openshot
|
|||
("python-requests" ,python-requests)
|
||||
("qtsvg" ,qtsvg)))
|
||||
(arguments
|
||||
`(#:tests? #f ;no tests
|
||||
#:modules ((guix build python-build-system)
|
||||
`(#:modules ((guix build python-build-system)
|
||||
(guix build qt-utils)
|
||||
(guix build utils))
|
||||
#:imported-modules (,@%python-build-system-modules
|
||||
(guix build qt-utils))
|
||||
#:phases (modify-phases %standard-phases
|
||||
(delete 'build) ;install phase does all the work
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(setenv "QT_QPA_PLATFORM" "offscreen")
|
||||
(invoke "python" "src/tests/query_tests.py")))
|
||||
(add-after 'unpack 'patch-font-location
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((font (assoc-ref inputs "font-ubuntu")))
|
||||
|
|
Loading…
Reference in a new issue