From e7228f0cfaf7b09f895111886a4df6aa53812ecd Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 1 Apr 2020 22:15:50 +0300 Subject: gnu: openshot: Enable tests. * gnu/packages/video.scm (openshot)[arguments]: Add custom 'check phase. --- gnu/packages/video.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index fcd9c9aca8..c62e651612 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -3681,14 +3681,17 @@ API. It includes bindings for Python, Ruby, and other languages.") ("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"))) -- cgit v1.2.3