pkgsrc/net/py-subunit/Makefile
adam f726e1ef0b py-subunit: added version 1.3.0
Subunit is a streaming protocol for test results.

A number of useful things can be done easily with subunit:
* Test aggregation: Tests run separately can be combined and then
  reported/displayed together. For instance, tests from different languages can
  be shown as a seamless whole, and tests running on multiple machines can be
  aggregated into a single stream through a multiplexer.
* Test archiving: A test run may be recorded and replayed later.
* Test isolation: Tests that may crash or otherwise interact badly with each
  other can be run seperately and then aggregated, rather than interfering with
  each other or requiring an adhoc test->runner reporting protocol.
* Grid testing: subunit can act as the necessary serialisation and
  deserialiation to get test runs on distributed machines to be reported in
  real time.
2018-05-17 08:09:11 +00:00

33 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2018/05/17 08:09:11 adam Exp $
DISTNAME= python-subunit-1.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^python-//}
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-subunit/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://launchpad.net/subunit
COMMENT= Python implementation of subunit test streaming protocol
LICENSE= apache-2.0 OR modified-bsd
DEPENDS+= ${PYPKGPREFIX}-extras-[0-9]*:../../devel/py-extras
DEPENDS+= ${PYPKGPREFIX}-testtools>=0.9.34:../../devel/py-testtools
TEST_DEPENDS+= ${PYPKGPREFIX}-fixtures-[0-9]*:../../devel/py-fixtures
TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
TEST_DEPENDS+= ${PYPKGPREFIX}-testscenarios-[0-9]*:../../devel/py-testscenarios
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
for f in subunit-1to2 subunit-1to2 subunit-2to1 subunit-filter subunit-ls \
subunit-notify subunit-output subunit-stats subunit-tags subunit2csv \
subunit2disk subunit2gtk subunit2junitxml subunit2pyunit tap2subunit; do \
${MV} $${f} $${f}-${PYVERSSUFFIX} || ${TRUE}; \
done
do-test:
cd ${WRKSRC}/python && ${PYTHONBIN} -m unittest discover -v
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"