Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-django-taggit Hook up proper testing



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff8b793a1f31
branches:  trunk
changeset: 436507:ff8b793a1f31
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Aug 04 00:29:03 2020 +0000

description:
Hook up proper testing

diffstat:

 www/py-django-taggit/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r c20d388f0108 -r ff8b793a1f31 www/py-django-taggit/Makefile
--- a/www/py-django-taggit/Makefile     Tue Aug 04 00:12:17 2020 +0000
+++ b/www/py-django-taggit/Makefile     Tue Aug 04 00:29:03 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/08/04 00:10:11 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2020/08/04 00:29:03 joerg Exp $
 
 DISTNAME=      django-taggit-1.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -14,8 +14,12 @@
 GITHUB_TAG=    ${PKGVERSION_NOREV}
 
 DEPENDS+=      ${PYPKGPREFIX}-django>=1.11:../../www/py-django
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
 
 USE_LANGUAGES=         # none
 
+do-test:
+       cd ${WRKSRC} && ${PREFIX}/bin/coverage-${PYVERSSUFFIX} run -m django test --settings=tests.settings
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index