[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/06: gnu: gpodder: Run tests.
From: |
guix-commits |
Subject: |
05/06: gnu: gpodder: Run tests. |
Date: |
Fri, 17 Apr 2020 07:03:13 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 5ea902874bff728770a46002be4b3a749d1ee8db
Author: Pierre Langlois <address@hidden>
AuthorDate: Wed Apr 15 18:41:02 2020 +0200
gnu: gpodder: Run tests.
* gnu/packages/gpodder.scm (gpodder)[native-inputs]: Add python-coverage and
python-minimock.
[arguments]: Replace the 'check phase and invoke "make unittest".
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/gpodder.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gpodder.scm b/gnu/packages/gpodder.scm
index 84c63ce..98d7a84 100644
--- a/gnu/packages/gpodder.scm
+++ b/gnu/packages/gpodder.scm
@@ -51,7 +51,9 @@
(file-name (git-file-name name version))))
(build-system python-build-system)
(native-inputs
- `(("intltool" ,intltool)))
+ `(("intltool" ,intltool)
+ ("python-coverage" ,python-coverage)
+ ("python-minimock" ,python-minimock)))
(inputs
`(("gtk+" ,gtk+)
("python-pygobject" ,python-pygobject)
@@ -72,6 +74,12 @@
(substitute* "src/gpodder/util.py"
(("xdg-open") (string-append xdg-utils "/bin/xdg-open")))
#t)))
+ (replace 'check
+ (lambda _
+ ; The `unittest' target overrides the PYTHONPATH variable.
+ (substitute* "makefile"
+ (("PYTHONPATH=src/") "PYTHONPATH=${PYTHONPATH}:src/"))
+ (invoke "make" "unittest")))
;; 'msgmerge' introduces non-determinism by resetting the
;; POT-Creation-Date in .po files.
(add-before 'install 'do-not-run-msgmerge
- branch master updated (d312bbf -> 79ef072), guix-commits, 2020/04/17
- 01/06: gnu: dovecot: Add libunwind input for arm., guix-commits, 2020/04/17
- 04/06: gnu: gpodder: Update to 3.10.15., guix-commits, 2020/04/17
- 06/06: gnu: python-podcastparser: Run tests., guix-commits, 2020/04/17
- 03/06: maint: Build binary tarball without '-K'., guix-commits, 2020/04/17
- 02/06: doc: Replace incorrect uses of @var with @code., guix-commits, 2020/04/17
- 05/06: gnu: gpodder: Run tests.,
guix-commits <=