svn commit: r554000 - head/security/py-xkcdpass

Mateusz Piotrowski 0mp at FreeBSD.org
Tue Nov 3 15:47:00 UTC 2020


Author: 0mp
Date: Tue Nov  3 15:47:00 2020
New Revision: 554000
URL: https://svnweb.freebsd.org/changeset/ports/554000

Log:
  Add tests and USE_PYTHON=concurrent
  
  Reported by:	koobs
  Approved by:	maintainer timeout

Modified:
  head/security/py-xkcdpass/Makefile

Modified: head/security/py-xkcdpass/Makefile
==============================================================================
--- head/security/py-xkcdpass/Makefile	Tue Nov  3 15:36:36 2020	(r553999)
+++ head/security/py-xkcdpass/Makefile	Tue Nov  3 15:47:00 2020	(r554000)
@@ -3,6 +3,7 @@
 PORTNAME=	xkcdpass
 DISTVERSIONPREFIX=	${PORTNAME}-
 DISTVERSION=	1.17.4
+PORTREVISION=	1
 CATEGORIES=	security sysutils python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -12,10 +13,12 @@ COMMENT=	Password generator as in XKCD 936
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.BSD
 
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR}
+
 USES=		python
 USE_GITHUB=	yes
 GH_ACCOUNT=	jwfh
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
@@ -34,5 +37,9 @@ post-install:
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${_README_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+do-test:
+	@(cd ${TEST_WRKSRC} && \
+		${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list