Add do-test target
Submitted by: Anton Yuzhaninov <citrin@citrin.ru> Approved by: mat (mentor), maintainer Differential Revision: https://reviews.freebsd.org/D10103
This commit is contained in:
parent
96b6c282f5
commit
16b03d1b4e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436772
@ -18,6 +18,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-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>
|
||||
|
Loading…
Reference in New Issue
Block a user