Date: Sat, 1 May 2021 22:21:45 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: a5a2e1e3c955 - main - devel/p5-Test2-Plugin-Cover: Add p5-Test2-Plugin-Cover 0.000022 Message-ID: <202105012221.141MLjmc079734@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a5a2e1e3c955c7f83748908bd73eb5551c8c863b commit a5a2e1e3c955c7f83748908bd73eb5551c8c863b Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2021-05-01 22:12:39 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-05-01 22:19:05 +0000 devel/p5-Test2-Plugin-Cover: Add p5-Test2-Plugin-Cover 0.000022 Test2::Plugin::Cover will collect minimal file coverage info, and will do so with minimal performance impact. Every time a subroutine is called this tool will do its best to find the filename the subroutine was defined in, and add it to a list. Also, anytime you attempt to open a file with open() or sysopen() the file will be added to the list. This list will be attached to a test2 event just before the test exits. In most formaters the event will only show up as a comment on STDOUT # This test covered N source files. . However tools such as Test2::Harness::UI can make full use of the coverage information contained in the event. WWW: https://metacpan.org/release/Test2-Plugin-Cover --- devel/Makefile | 1 + devel/p5-Test2-Plugin-Cover/Makefile | 33 +++++++++++++++++++++++++++++++++ devel/p5-Test2-Plugin-Cover/distinfo | 3 +++ devel/p5-Test2-Plugin-Cover/pkg-descr | 12 ++++++++++++ devel/p5-Test2-Plugin-Cover/pkg-plist | 5 +++++ 5 files changed, 54 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 793ef7d239e6..0a27530978a8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3499,6 +3499,7 @@ SUBDIR += p5-Test-YAML-Valid SUBDIR += p5-Test-utf8 SUBDIR += p5-Test2-Harness + SUBDIR += p5-Test2-Plugin-Cover SUBDIR += p5-Test2-Plugin-DBIProfile SUBDIR += p5-Test2-Plugin-IOEvents SUBDIR += p5-Test2-Plugin-MemUsage diff --git a/devel/p5-Test2-Plugin-Cover/Makefile b/devel/p5-Test2-Plugin-Cover/Makefile new file mode 100644 index 000000000000..87d22d7c32db --- /dev/null +++ b/devel/p5-Test2-Plugin-Cover/Makefile @@ -0,0 +1,33 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= Test2-Plugin-Cover +PORTVERSION= 0.000022 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:EXODIST +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Fast and Minimal file coverage info + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Path-Tiny>=0.048:devel/p5-Path-Tiny +TEST_DEPENDS= p5-Test2-Suite>=0.000130:devel/p5-Test2-Suite + +USES= perl5 +USE_PERL5= configure + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 503200 +RUN_DEPENDS+= p5-Test-Simple>=1.302166:devel/p5-Test-Simple +.endif + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Test2/Plugin/Cover/Cover.so + +.include <bsd.port.post.mk> diff --git a/devel/p5-Test2-Plugin-Cover/distinfo b/devel/p5-Test2-Plugin-Cover/distinfo new file mode 100644 index 000000000000..4dbf4c8b7fe5 --- /dev/null +++ b/devel/p5-Test2-Plugin-Cover/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1619725307 +SHA256 (Test2-Plugin-Cover-0.000022.tar.gz) = b7fd5f9b751242b1bf2a2bb4f2718ca344edf596e45b0b0b4b546dac155c8c02 +SIZE (Test2-Plugin-Cover-0.000022.tar.gz) = 30031 diff --git a/devel/p5-Test2-Plugin-Cover/pkg-descr b/devel/p5-Test2-Plugin-Cover/pkg-descr new file mode 100644 index 000000000000..069c16d7b3c7 --- /dev/null +++ b/devel/p5-Test2-Plugin-Cover/pkg-descr @@ -0,0 +1,12 @@ +Test2::Plugin::Cover will collect minimal file coverage info, and will do so +with minimal performance impact. + +Every time a subroutine is called this tool will do its best to find the +filename the subroutine was defined in, and add it to a list. Also, anytime you +attempt to open a file with open() or sysopen() the file will be added to the +list. This list will be attached to a test2 event just before the test exits. In +most formaters the event will only show up as a comment on STDOUT # This test +covered N source files. . However tools such as Test2::Harness::UI can make full +use of the coverage information contained in the event. + +WWW: https://metacpan.org/release/Test2-Plugin-Cover diff --git a/devel/p5-Test2-Plugin-Cover/pkg-plist b/devel/p5-Test2-Plugin-Cover/pkg-plist new file mode 100644 index 000000000000..e8c8644a4ad0 --- /dev/null +++ b/devel/p5-Test2-Plugin-Cover/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_ARCH%%/Test2/EventFacet/Coverage.pm +%%SITE_ARCH%%/Test2/Plugin/Cover.pm +%%SITE_ARCH%%/auto/Test2/Plugin/Cover/Cover.so +%%PERL5_MAN3%%/Test2::EventFacet::Coverage.3.gz +%%PERL5_MAN3%%/Test2::Plugin::Cover.3.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105012221.141MLjmc079734>