Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 2021 16:54:34 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ccfa0d0a90fe - main - math/py-ducc0: Add the test target
Message-ID:  <202110181654.19IGsYxl091939@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit ccfa0d0a90fea4accf358383331acd4578e4ffcf
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-10-18 16:11:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-10-18 16:54:27 +0000

    math/py-ducc0: Add the test target
    
    At least one test fails due to numpy version being too low.
---
 math/py-ducc0/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/py-ducc0/Makefile b/math/py-ducc0/Makefile
index 6bdd58f1acff..0aa188f10db0 100644
--- a/math/py-ducc0/Makefile
+++ b/math/py-ducc0/Makefile
@@ -12,6 +12,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
 RUN_DEPENDS=	${PYNUMPY}
+TEST_DEPENDS=	py.test:devel/py-pytest@${PY_FLAVOR}
 
 USES=		python:3.6+
 
@@ -31,4 +32,7 @@ USES+=		compiler:c++17-lang
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ducc0*.so
 
+do-test: install
+	@cd ${WRKSRC} && py.test
+
 .include <bsd.port.mk>



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