git: 758cd8027321 - main - science/psi4: Improve do-test target, add comment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Jul 2023 19:37:50 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=758cd8027321dbdc732a5eaee53131bce4bd1113 commit 758cd8027321dbdc732a5eaee53131bce4bd1113 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-07-14 19:37:25 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-07-14 19:37:48 +0000 science/psi4: Improve do-test target, add comment --- science/psi4/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/science/psi4/Makefile b/science/psi4/Makefile index aac33fa4c4e6..51c9f50cbabc 100644 --- a/science/psi4/Makefile +++ b/science/psi4/Makefile @@ -25,7 +25,7 @@ RUN_DEPENDS= ${PY_DEPENDS} \ libint2-psi4>0:science/libint2-psi4 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} -USES= blaslapack:openblas cmake compiler:c++17-lang eigen:3 fortran localbase:ldflags python +USES= blaslapack:openblas cmake compiler:c++17-lang eigen:3 fortran localbase:ldflags pytest python USE_GITHUB= yes CMAKE_ARGS= -DLibxc_DIR=${LOCALBASE} \ @@ -40,6 +40,7 @@ TEST_ENV= ${MAKE_ENV} \ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}:${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psi4/tests \ PSIDATADIR=${STAGEDIR}${DATADIR} \ PSIPATH=${STAGEDIR}${DATADIR}/basis +TEST_WRKSRC= ${WRKSRC}/tests/pytests BINARY_ALIAS= python=${PYTHON_CMD} # only for tests @@ -72,7 +73,7 @@ do-install: # project fails to install itself into a stage directory due to a co # psi4 sometimes fails to print its version: https://github.com/psi4/psi4/issues/2831 -do-test: - @cd ${WRKSRC}/tests/pytests && ${SETENV} ${TEST_ENV} pytest +do-test: # 2 tests fail, see https://github.com/psi4/psi4/issues/3014 + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest # tests can run without this target too, but this way tests output is more concise and it looks more appealing .include <bsd.port.mk>