svn commit: r436772 - head/security/py-pynacl
Kirill Ponomarew
krion at FreeBSD.org
Thu Mar 23 13:26:03 UTC 2017
Author: krion
Date: Thu Mar 23 13:26:02 2017
New Revision: 436772
URL: https://svnweb.freebsd.org/changeset/ports/436772
Log:
Add do-test target
Submitted by: Anton Yuzhaninov <citrin at citrin.ru>
Approved by: mat (mentor), maintainer
Differential Revision: https://reviews.freebsd.org/D10103
Modified:
head/security/py-pynacl/Makefile
Modified: head/security/py-pynacl/Makefile
==============================================================================
--- head/security/py-pynacl/Makefile Thu Mar 23 13:22:42 2017 (r436771)
+++ head/security/py-pynacl/Makefile Thu Mar 23 13:26:02 2017 (r436772)
@@ -18,6 +18,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six
BUILD_DEPENDS= ${RUN_DEPENDS}
LIB_DEPENDS= libsodium.so:security/libsodium
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
USES= python
USE_PYTHON= autoplist distutils
@@ -27,4 +28,7 @@ CFLAGS+= -I ${LOCALBASE}/include
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/nacl/_sodium.so
+do-test:
+ @cd ${WRKSRC} && ${SETENV} PYTHONPATH=../src ${PYTHON_CMD} -m pytest -rs tests
+
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list