From de8e111344105006d0653f93a6884d5a8f8da332 Mon Sep 17 00:00:00 2001 From: Paul Howarth <p...@city-fan.org> Date: Mon, 19 Sep 2016 14:16:18 +0100 Subject: Initial import (perl-Test2-Plugin-NoWarnings-0.02-3)
Loading this plugin causes your tests to fail if there are any warnings while they run. Each warning generates a new failing test and the warning content is outputted via diag. This module uses $SIG{__WARN__}, so if the code you're testing sets this, then this module will stop working. --- .gitignore | 1 + perl-Test2-Plugin-NoWarnings.spec | 70 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 perl-Test2-Plugin-NoWarnings.spec diff --git a/.gitignore b/.gitignore index e69de29..1650141 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test2-Plugin-NoWarnings-[0-9.]*.tar.gz diff --git a/perl-Test2-Plugin-NoWarnings.spec b/perl-Test2-Plugin-NoWarnings.spec new file mode 100644 index 0000000..bbdb88a --- /dev/null +++ b/perl-Test2-Plugin-NoWarnings.spec @@ -0,0 +1,70 @@ +Name: perl-Test2-Plugin-NoWarnings +Version: 0.02 +Release: 3%{?dist} +Summary: Fail if tests warn +License: Artistic 2.0 +URL: http://search.cpan.org/dist/Test2-Plugin-NoWarnings/ +Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Test2-Plugin-NoWarnings-%{version}.tar.gz +BuildArch: noarch +# Build +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) > 6.75 +# Module Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(parent) +BuildRequires: perl(strict) +BuildRequires: perl(Test2::API) +BuildRequires: perl(Test2::Event) +BuildRequires: perl(Test2::Util::HashBase) +BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test2::Bundle::Extended) +BuildRequires: perl(Test::More) >= 0.96 +# Optional Tests +BuildRequires: perl(CPAN::Meta) >= 2.120900 +BuildRequires: perl(CPAN::Meta::Prereqs) +# Dependencies +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Loading this plugin causes your tests to fail if there are any warnings while +they run. Each warning generates a new failing test and the warning content is +outputted via diag. + +This module uses $SIG{__WARN__}, so if the code you're testing sets this, then +this module will stop working. + +%prep +%setup -q -n Test2-Plugin-NoWarnings-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot} + +%check +make test + +%files +%license LICENSE +%doc Changes README.md +%{perl_vendorlib}/Test2/ +%{_mandir}/man3/Test2::Event::Warning.3* +%{_mandir}/man3/Test2::Plugin::NoWarnings.3* + +%changelog +* Mon Sep 19 2016 Paul Howarth <p...@city-fan.org> - 0.02-3 +- Drop unused BR: findutils (#1377228) + +* Mon Sep 19 2016 Paul Howarth <p...@city-fan.org> - 0.02-2 +- Sanitize for Fedora submission + +* Sun Sep 18 2016 Paul Howarth <p...@city-fan.org> - 0.02-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..0f84cad 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +61d01547afd86bf8e6ba6140ed340cd8 Test2-Plugin-NoWarnings-0.02.tar.gz -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Test2-Plugin-NoWarnings.git/commit/?h=perl-Test2-Plugin-NoWarnings-0.02-3.fc24&id=de8e111344105006d0653f93a6884d5a8f8da332 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org