Convert to test framework

It removes the warning message:
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2021-03-03 18:09:10 +00:00
parent f64348a257
commit 5ac372e487
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567142

View file

@ -13,12 +13,14 @@ COMMENT= Python function signatures from PEP362
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}unittest2>=0:devel/py-unittest2@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
do-test:
cd ${WRKSRC}/ && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
cd ${WRKSRC}/ && ${PYTHON_CMD} -m unittest2 -v
.include <bsd.port.mk>