Skip to content

Commit

Permalink
archivers/py-zopfli: Add make test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Mar 25, 2022
1 parent 3e5d995 commit 7e5bafe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions archivers/py-zopfli/Makefile
Expand Up @@ -13,11 +13,15 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR}

USES= python:3.7+ zip
USE_PYTHON= autoplist concurrent distutils

post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

do-test:
cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v

.include <bsd.port.mk>

0 comments on commit 7e5bafe

Please sign in to comment.