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 @@ API. It includes bindings for Python, Ruby, and other languages.")
|
||||||
("python-requests" ,python-requests)
|
("python-requests" ,python-requests)
|
||||||
("qtsvg" ,qtsvg)))
|
("qtsvg" ,qtsvg)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ;no tests
|
`(#:modules ((guix build python-build-system)
|
||||||
#:modules ((guix build python-build-system)
|
|
||||||
(guix build qt-utils)
|
(guix build qt-utils)
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
#:imported-modules (,@%python-build-system-modules
|
#:imported-modules (,@%python-build-system-modules
|
||||||
(guix build qt-utils))
|
(guix build qt-utils))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(delete 'build) ;install phase does all the work
|
(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
|
(add-after 'unpack 'patch-font-location
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((font (assoc-ref inputs "font-ubuntu")))
|
(let ((font (assoc-ref inputs "font-ubuntu")))
|
||||||
|
|
Reference in a new issue