svn commit: r556362 - head/graphics/py-h3
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Nov 26 21:17:49 UTC 2020
Author: sunpoet
Date: Thu Nov 26 21:17:42 2020
New Revision: 556362
URL: https://svnweb.freebsd.org/changeset/ports/556362
Log:
Convert to test framework
Modified:
head/graphics/py-h3/Makefile
Modified: head/graphics/py-h3/Makefile
==============================================================================
--- head/graphics/py-h3/Makefile Thu Nov 26 21:17:38 2020 (r556361)
+++ head/graphics/py-h3/Makefile Thu Nov 26 21:17:42 2020 (r556362)
@@ -18,6 +18,8 @@ BUILD_DEPENDS= cmake:devel/cmake \
ninja:devel/ninja \
${PYTHON_PKGNAMEPREFIX}scikit-build>=0:devel/py-scikit-build@${PY_FLAVOR}
LIB_DEPENDS= libh3.so:graphics/h3
+TEST_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= localbase:ldflags python
USE_PYTHON= autoplist concurrent cython distutils
@@ -29,5 +31,8 @@ OPTIONS_DEFAULT=NUMPY
NUMPY_DESC= NumPy support
NUMPY_RUN_DEPENDS= ${PYNUMPY}
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list