Move tests to MODPY_PYTEST and drop custom do-test target.
This commit is contained in:
parent
2883f8d329
commit
ce711db48f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2019/06/26 15:30:46 kmos Exp $
|
||||
# $OpenBSD: Makefile,v 1.29 2019/12/01 00:07:03 kmos Exp $
|
||||
|
||||
COMMENT= DNS toolkit for Python
|
||||
|
||||
@ -21,6 +21,7 @@ FLAVOR?=
|
||||
MODULES= lang/python
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
MODPY_ADJ_FILES= examples/*.py
|
||||
MODPY_PYTEST= Yes
|
||||
|
||||
TEST_DEPENDS= security/py-ecdsa${MODPY_FLAVOR}
|
||||
|
||||
@ -28,13 +29,11 @@ TEST_DEPENDS= security/py-ecdsa${MODPY_FLAVOR}
|
||||
TEST_DEPENDS+= devel/py-typing
|
||||
.endif
|
||||
|
||||
TEST_ENV+= PYTHONPATH="${WRKSRC}"
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${MODPY_PY_PREFIX}dnspython
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/examples/* \
|
||||
${PREFIX}/share/examples/${MODPY_PY_PREFIX}dnspython
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC}/tests && env PYTHONPATH=../ \
|
||||
make check PYTHON=${MODPY_BIN}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user