add bits for tests, currently inactive pending importing py-objgraph

This commit is contained in:
sthen 2019-04-24 20:00:03 +00:00
parent 3d2441f908
commit 942b82a13c

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.17 2019/04/24 16:34:42 sthen Exp $
# $OpenBSD: Makefile,v 1.18 2019/04/24 20:00:03 sthen Exp $
COMMENT = network library for easy and scalable concurrency
@ -35,8 +35,6 @@ MAKE_ENV = CARES_EMBED=0 LIBEV_EMBED=0
CFLAGS += -I${LOCALBASE}/include
LDFLAGS += -L${LOCALBASE}/lib
NO_TEST = Yes
WRKBUILD = ${WRKSRC}/src
pre-patch:
@ -48,4 +46,22 @@ post-build:
post-install:
rm -Rf ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/greentest
# Also needs objgraph, not yet imported.
NO_TEST = Yes
TEST_DEPENDS = ${RUN_DEPENDS} \
devel/py-coverage${MODPY_FLAVOR} \
devel/py-coveralls${MODPY_FLAVOR} \
devel/py-zopeevent${MODPY_FLAVOR} \
devel/py-zopeinterface${MODPY_FLAVOR} \
sysutils/py-psutil${MODPY_FLAVOR} \
www/py-requests${MODPY_FLAVOR}
.if !${FLAVOR:Mpython3}
TEST_DEPENDS += devel/py-futures \
devel/py-mock
.endif
do-test:
cd ${WRKSRC}; env PYTHONPATH=src ${MODPY_BIN} -m gevent.tests
.include <bsd.port.mk>