Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2020 21:17:43 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r556362 - head/graphics/py-h3
Message-ID:  <202011262117.0AQLHhEs050947@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011262117.0AQLHhEs050947>