git: 7878a2ed9285 - main - devel/py-pastel: Add make test

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 17:20:18 UTC
The branch main has been updated by sunpoet:

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

commit 7878a2ed9285c542f1698639cc0cf5235c01c2a4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 17:15:24 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 17:19:24 +0000

    devel/py-pastel: Add make test
---
 devel/py-pastel/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/py-pastel/Makefile b/devel/py-pastel/Makefile
index 3441c60cbef3..9331f83f8f2d 100644
--- a/devel/py-pastel/Makefile
+++ b/devel/py-pastel/Makefile
@@ -13,9 +13,14 @@ COMMENT=	Bring colors to your terminal
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR}
+
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+do-test:
+	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
+
 .include <bsd.port.mk>