From 943b94ccf68df42d6042f1d82941d2a794af884c Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 26 Jun 2020 08:44:44 +0000 Subject: [PATCH] Convert to test framework --- devel/py-pyperf/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devel/py-pyperf/Makefile b/devel/py-pyperf/Makefile index 118a22691cea..c64a175a7909 100644 --- a/devel/py-pyperf/Makefile +++ b/devel/py-pyperf/Makefile @@ -13,9 +13,15 @@ COMMENT= Run and analyze benchmarks LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} + USES= python:3.4+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes +do-test: + cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m nose -d -v + .include