diff options
author | adam <adam@pkgsrc.org> | 2018-05-17 08:09:11 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-05-17 08:09:11 +0000 |
commit | 2c0d695ae0fbb8c0b8dc37e03fb1c2abb8e79004 (patch) | |
tree | 5fbe5aa9bc34691fda908a176c401132aad00361 /net | |
parent | caab619ba8e063d63885c27ff211fdfdebfb228a (diff) | |
download | pkgsrc-2c0d695ae0fbb8c0b8dc37e03fb1c2abb8e79004.tar.gz |
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.
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 3 | ||||
-rw-r--r-- | net/py-subunit/ALTERNATIVES | 14 | ||||
-rw-r--r-- | net/py-subunit/DESCR | 14 | ||||
-rw-r--r-- | net/py-subunit/Makefile | 33 | ||||
-rw-r--r-- | net/py-subunit/PLIST | 105 | ||||
-rw-r--r-- | net/py-subunit/distinfo | 6 |
6 files changed, 174 insertions, 1 deletions
diff --git a/net/Makefile b/net/Makefile index 576d4dcdf93..ae08e018706 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1215 2018/05/02 18:16:28 minskim Exp $ +# $NetBSD: Makefile,v 1.1216 2018/05/17 08:09:11 adam Exp $ # COMMENT= Networking tools @@ -694,6 +694,7 @@ SUBDIR+= py-socketpool SUBDIR+= py-socksipy-branch SUBDIR+= py-softlayer SUBDIR+= py-softlayer_messaging +SUBDIR+= py-subunit SUBDIR+= py-tldextract SUBDIR+= py-tweepy SUBDIR+= py-twisted diff --git a/net/py-subunit/ALTERNATIVES b/net/py-subunit/ALTERNATIVES new file mode 100644 index 00000000000..83575ddc8a6 --- /dev/null +++ b/net/py-subunit/ALTERNATIVES @@ -0,0 +1,14 @@ +bin/subunit-1to2 @PREFIX@/bin/subunit-1to2-@PYVERSSUFFIX@ +bin/subunit-2to1 @PREFIX@/bin/subunit-2to1-@PYVERSSUFFIX@ +bin/subunit-filter @PREFIX@/bin/subunit-filter-@PYVERSSUFFIX@ +bin/subunit-ls @PREFIX@/bin/subunit-ls-@PYVERSSUFFIX@ +bin/subunit-notify @PREFIX@/bin/subunit-notify-@PYVERSSUFFIX@ +bin/subunit-output @PREFIX@/bin/subunit-output-@PYVERSSUFFIX@ +bin/subunit-stats @PREFIX@/bin/subunit-stats-@PYVERSSUFFIX@ +bin/subunit-tags @PREFIX@/bin/subunit-tags-@PYVERSSUFFIX@ +bin/subunit2csv @PREFIX@/bin/subunit2csv-@PYVERSSUFFIX@ +bin/subunit2disk @PREFIX@/bin/subunit2disk-@PYVERSSUFFIX@ +bin/subunit2gtk @PREFIX@/bin/subunit2gtk-@PYVERSSUFFIX@ +bin/subunit2junitxml @PREFIX@/bin/subunit2junitxml-@PYVERSSUFFIX@ +bin/subunit2pyunit @PREFIX@/bin/subunit2pyunit-@PYVERSSUFFIX@ +bin/tap2subunit @PREFIX@/bin/tap2subunit-@PYVERSSUFFIX@ diff --git a/net/py-subunit/DESCR b/net/py-subunit/DESCR new file mode 100644 index 00000000000..1fec2c10219 --- /dev/null +++ b/net/py-subunit/DESCR @@ -0,0 +1,14 @@ +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. diff --git a/net/py-subunit/Makefile b/net/py-subunit/Makefile new file mode 100644 index 00000000000..0bd525cbb94 --- /dev/null +++ b/net/py-subunit/Makefile @@ -0,0 +1,33 @@ +# $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" diff --git a/net/py-subunit/PLIST b/net/py-subunit/PLIST new file mode 100644 index 00000000000..7e6a4719af2 --- /dev/null +++ b/net/py-subunit/PLIST @@ -0,0 +1,105 @@ +@comment $NetBSD: PLIST,v 1.1 2018/05/17 08:09:11 adam Exp $ +bin/subunit-1to2-${PYVERSSUFFIX} +bin/subunit-2to1-${PYVERSSUFFIX} +bin/subunit-filter-${PYVERSSUFFIX} +bin/subunit-ls-${PYVERSSUFFIX} +bin/subunit-notify-${PYVERSSUFFIX} +bin/subunit-output-${PYVERSSUFFIX} +bin/subunit-stats-${PYVERSSUFFIX} +bin/subunit-tags-${PYVERSSUFFIX} +bin/subunit2csv-${PYVERSSUFFIX} +bin/subunit2disk-${PYVERSSUFFIX} +bin/subunit2gtk-${PYVERSSUFFIX} +bin/subunit2junitxml-${PYVERSSUFFIX} +bin/subunit2pyunit-${PYVERSSUFFIX} +bin/tap2subunit-${PYVERSSUFFIX} +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/pbr.json +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/subunit/__init__.py +${PYSITELIB}/subunit/__init__.pyc +${PYSITELIB}/subunit/__init__.pyo +${PYSITELIB}/subunit/_output.py +${PYSITELIB}/subunit/_output.pyc +${PYSITELIB}/subunit/_output.pyo +${PYSITELIB}/subunit/_to_disk.py +${PYSITELIB}/subunit/_to_disk.pyc +${PYSITELIB}/subunit/_to_disk.pyo +${PYSITELIB}/subunit/chunked.py +${PYSITELIB}/subunit/chunked.pyc +${PYSITELIB}/subunit/chunked.pyo +${PYSITELIB}/subunit/details.py +${PYSITELIB}/subunit/details.pyc +${PYSITELIB}/subunit/details.pyo +${PYSITELIB}/subunit/filters.py +${PYSITELIB}/subunit/filters.pyc +${PYSITELIB}/subunit/filters.pyo +${PYSITELIB}/subunit/iso8601.py +${PYSITELIB}/subunit/iso8601.pyc +${PYSITELIB}/subunit/iso8601.pyo +${PYSITELIB}/subunit/progress_model.py +${PYSITELIB}/subunit/progress_model.pyc +${PYSITELIB}/subunit/progress_model.pyo +${PYSITELIB}/subunit/run.py +${PYSITELIB}/subunit/run.pyc +${PYSITELIB}/subunit/run.pyo +${PYSITELIB}/subunit/test_results.py +${PYSITELIB}/subunit/test_results.pyc +${PYSITELIB}/subunit/test_results.pyo +${PYSITELIB}/subunit/tests/__init__.py +${PYSITELIB}/subunit/tests/__init__.pyc +${PYSITELIB}/subunit/tests/__init__.pyo +${PYSITELIB}/subunit/tests/sample-script.py +${PYSITELIB}/subunit/tests/sample-script.pyc +${PYSITELIB}/subunit/tests/sample-script.pyo +${PYSITELIB}/subunit/tests/sample-two-script.py +${PYSITELIB}/subunit/tests/sample-two-script.pyc +${PYSITELIB}/subunit/tests/sample-two-script.pyo +${PYSITELIB}/subunit/tests/test_chunked.py +${PYSITELIB}/subunit/tests/test_chunked.pyc +${PYSITELIB}/subunit/tests/test_chunked.pyo +${PYSITELIB}/subunit/tests/test_details.py +${PYSITELIB}/subunit/tests/test_details.pyc +${PYSITELIB}/subunit/tests/test_details.pyo +${PYSITELIB}/subunit/tests/test_filter_to_disk.py +${PYSITELIB}/subunit/tests/test_filter_to_disk.pyc +${PYSITELIB}/subunit/tests/test_filter_to_disk.pyo +${PYSITELIB}/subunit/tests/test_filters.py +${PYSITELIB}/subunit/tests/test_filters.pyc +${PYSITELIB}/subunit/tests/test_filters.pyo +${PYSITELIB}/subunit/tests/test_output_filter.py +${PYSITELIB}/subunit/tests/test_output_filter.pyc +${PYSITELIB}/subunit/tests/test_output_filter.pyo +${PYSITELIB}/subunit/tests/test_progress_model.py +${PYSITELIB}/subunit/tests/test_progress_model.pyc +${PYSITELIB}/subunit/tests/test_progress_model.pyo +${PYSITELIB}/subunit/tests/test_run.py +${PYSITELIB}/subunit/tests/test_run.pyc +${PYSITELIB}/subunit/tests/test_run.pyo +${PYSITELIB}/subunit/tests/test_subunit_filter.py +${PYSITELIB}/subunit/tests/test_subunit_filter.pyc +${PYSITELIB}/subunit/tests/test_subunit_filter.pyo +${PYSITELIB}/subunit/tests/test_subunit_stats.py +${PYSITELIB}/subunit/tests/test_subunit_stats.pyc +${PYSITELIB}/subunit/tests/test_subunit_stats.pyo +${PYSITELIB}/subunit/tests/test_subunit_tags.py +${PYSITELIB}/subunit/tests/test_subunit_tags.pyc +${PYSITELIB}/subunit/tests/test_subunit_tags.pyo +${PYSITELIB}/subunit/tests/test_tap2subunit.py +${PYSITELIB}/subunit/tests/test_tap2subunit.pyc +${PYSITELIB}/subunit/tests/test_tap2subunit.pyo +${PYSITELIB}/subunit/tests/test_test_protocol.py +${PYSITELIB}/subunit/tests/test_test_protocol.pyc +${PYSITELIB}/subunit/tests/test_test_protocol.pyo +${PYSITELIB}/subunit/tests/test_test_protocol2.py +${PYSITELIB}/subunit/tests/test_test_protocol2.pyc +${PYSITELIB}/subunit/tests/test_test_protocol2.pyo +${PYSITELIB}/subunit/tests/test_test_results.py +${PYSITELIB}/subunit/tests/test_test_results.pyc +${PYSITELIB}/subunit/tests/test_test_results.pyo +${PYSITELIB}/subunit/v2.py +${PYSITELIB}/subunit/v2.pyc +${PYSITELIB}/subunit/v2.pyo diff --git a/net/py-subunit/distinfo b/net/py-subunit/distinfo new file mode 100644 index 00000000000..02f6e38c2d5 --- /dev/null +++ b/net/py-subunit/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/05/17 08:09:11 adam Exp $ + +SHA1 (python-subunit-1.3.0.tar.gz) = a23f4ae8894687adfda2f5a8333b2f2579efd720 +RMD160 (python-subunit-1.3.0.tar.gz) = 54521191be886a4bcf9eb0da372221c181d1cd46 +SHA512 (python-subunit-1.3.0.tar.gz) = 387c9ce8ed679d8998d33c7a295412e4f9de46b8dccdfab92eb82d8c4290958760b6c9bd99d50abd0836e4556c1b0c0132fc01e16801a3113844ab1bf28cf962 +Size (python-subunit-1.3.0.tar.gz) = 99309 bytes |