From 758cd8027321dbdc732a5eaee53131bce4bd1113 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 14 Jul 2023 12:37:25 -0700 Subject: 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 -- cgit v1.2.3