git: 6042c4ceac99 - main - science/py-gsd: Fix tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 06 Sep 2022 16:06:10 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6042c4ceac992d5772c2bdf2c26180388ac2e4d6

commit 6042c4ceac992d5772c2bdf2c26180388ac2e4d6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-06 15:23:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-06 16:06:06 +0000

    science/py-gsd: Fix tests
---
 science/py-gsd/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/science/py-gsd/Makefile b/science/py-gsd/Makefile
index 895b8b903830..a26a3c8b2b33 100644
--- a/science/py-gsd/Makefile
+++ b/science/py-gsd/Makefile
@@ -14,7 +14,11 @@ BUILD_DEPENDS=	${PYNUMPY}
 RUN_DEPENDS=	${PYNUMPY}
 
 USES=		python:3.6+
-USE_PYTHON=	distutils cython autoplist pytest # tests fail, see https://github.com/glotzerlab/gsd/issues/180
+USE_PYTHON=	distutils cython autoplist pytest
+
+TEST_WRKSRC=	${WRKSRC}/gsd/test
+#TEST_ARGS=	--pyargs gsd -p gsd.pytest_plugin_validate --validate # enable this line to run longer tests, see https://gsd.readthedocs.io/en/v2.6.0/installation.html#run-tests
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gsd/fl*.so