From 98ea635f990a73afdd6c43bf98d617354e8e7138 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sun, 17 May 2020 18:27:24 +0000 Subject: [PATCH] Convert to test framework --- devel/py-jaraco.util/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devel/py-jaraco.util/Makefile b/devel/py-jaraco.util/Makefile index 66fb73e0d7be..d7452a7e0a53 100644 --- a/devel/py-jaraco.util/Makefile +++ b/devel/py-jaraco.util/Makefile @@ -17,6 +17,10 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}contextlib2>=0:devel/py-contextlib2@${PY_FLA ${PYTHON_PKGNAMEPREFIX}jaraco>=0:devel/py-jaraco@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jaraco.context>=0:devel/py-jaraco.context@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.5:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-black-multipy>=0:devel/py-pytest-black-multipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-flake8>=0:devel/py-pytest-flake8@${PY_FLAVOR} USES= python:3.6+ USE_PYTHON= autoplist concurrent distutils @@ -33,4 +37,7 @@ post-install: trim-jaraco-namespace: @${REINPLACE_CMD} '/jaraco\/__init__\./d; /jaraco\/__pycache__\/__init__\./d' ${TMPPLIST} +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v + .include