git: fa0a156f64b4 - main - devel/py-stringzilla: Add tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 20 Dec 2024 06:06:02 UTC
The branch main has been updated by yuri:

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

commit fa0a156f64b4ae1eca6b257c3e76349b6e0943b7
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-19 15:09:02 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-20 06:05:40 +0000

    devel/py-stringzilla: Add tests
---
 devel/py-stringzilla/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/devel/py-stringzilla/Makefile b/devel/py-stringzilla/Makefile
index 7a65a685c934..aff3864bd11b 100644
--- a/devel/py-stringzilla/Makefile
+++ b/devel/py-stringzilla/Makefile
@@ -17,9 +17,11 @@ ONLY_FOR_ARCHS=	aarch64 amd64 i386
 
 BUILD_DEPENDS=	${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyarrow>0:databases/py-pyarrow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-repeat>0:devel/py-pytest-repeat@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	pep517 autoplist
+USE_PYTHON=	pep517 autoplist pytest
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	ashvardanian
@@ -28,4 +30,9 @@ GH_PROJECT=	StringZilla
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/stringzilla${PYTHON_EXT_SUFFIX}.so
 
+do-test:
+	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest scripts/test.py
+
+# tests as of 3.11.1: 10195 passed in 23.19s
+
 .include <bsd.port.mk>