svn commit: r533132 - head/textproc/py-iso-639

Matthias Andree mandree at FreeBSD.org
Mon Apr 27 12:50:09 UTC 2020


Author: mandree
Date: Mon Apr 27 12:50:08 2020
New Revision: 533132
URL: https://svnweb.freebsd.org/changeset/ports/533132

Log:
  Add support for 'make test'.

Modified:
  head/textproc/py-iso-639/Makefile

Modified: head/textproc/py-iso-639/Makefile
==============================================================================
--- head/textproc/py-iso-639/Makefile	Mon Apr 27 12:43:01 2020	(r533131)
+++ head/textproc/py-iso-639/Makefile	Mon Apr 27 12:50:08 2020	(r533132)
@@ -12,6 +12,8 @@ COMMENT=	Python library for ISO 639 standard
 LICENSE=	AGPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}country>0:devel/py-country@${PY_FLAVOR}
+
 USES=		python
 
 USE_GITHUB=	yes
@@ -20,5 +22,8 @@ GH_PROJECT=	iso639
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
+
+do-test:
+		cd ${WRKSRC} && ${PYTHON_CMD} -m unittest -v tests/tests.py
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list