git: 75a54d5e8705 - main - science/py-dwave-inspector: add test results
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Sep 2026 22:42:32 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=75a54d5e8705bf6a968ac49d4dcd2a500be05d1d
commit 75a54d5e8705bf6a968ac49d4dcd2a500be05d1d
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-19 18:07:18 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-19 22:42:18 +0000
science/py-dwave-inspector: add test results
---
science/py-dwave-inspector/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/science/py-dwave-inspector/Makefile b/science/py-dwave-inspector/Makefile
index e72e1131cbcc..2902e9970b4c 100644
--- a/science/py-dwave-inspector/Makefile
+++ b/science/py-dwave-inspector/Makefile
@@ -26,8 +26,6 @@ USE_PYTHON= distutils cython unittest # few tests fail, see https://github.com/d
USE_GITHUB= yes
GH_ACCOUNT= dwavesystems
-TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-
NO_ARCH= yes
post-install:
@@ -36,4 +34,14 @@ post-install:
${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/__init__.py \
${STAGEDIR}${PYTHON_SITELIBDIR}/dwave/__pycache__
+TEST_ENV= ${MAKE_ENV} \
+ LD_LIBRARY_PATH=/usr/lib:/lib:${LOCALBASE}/lib/gcc14 \
+ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+do-test:
+ @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m unittest -v \
+ tests.test_config tests.test_proxies tests.test_utils tests.test_viewers
+
+# tests as of 0.5.5: 50 tests, OK in 1.130s
+
.include <bsd.port.mk>