From cc303b6024661abfda3345c5f767d73143422bffbf24645da349f8ba2eec761d Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Tue, 3 Aug 2021 08:46:55 +0000 Subject: [PATCH] Accepting request 909780 from devel:languages:perl:autoupdate - updated to 1.06 see /usr/share/doc/packages/perl-Test-NoWarnings/Changes 1.06 - 2021-07-27 - released as stable 1.05_01 - 2021-07-15 - clarify docs around tests without a plan - documentation cleanups and typo fixes - minor code cleanups - use warnings in tests - skip fork test if perl can't fork - note conflicts with Carp::Always in documentation - Made had_no_warnings turn off the checking at END time for use with done_testing based tests with no test count. Also added docs. OBS-URL: https://build.opensuse.org/request/show/909780 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-NoWarnings?expand=0&rev=28 --- Test-NoWarnings-1.04.tar.gz | 3 --- Test-NoWarnings-1.06.tar.gz | 3 +++ perl-Test-NoWarnings.changes | 19 ++++++++++++++++ perl-Test-NoWarnings.spec | 42 +++++++++++++++++------------------- 4 files changed, 42 insertions(+), 25 deletions(-) delete mode 100644 Test-NoWarnings-1.04.tar.gz create mode 100644 Test-NoWarnings-1.06.tar.gz diff --git a/Test-NoWarnings-1.04.tar.gz b/Test-NoWarnings-1.04.tar.gz deleted file mode 100644 index c79c697..0000000 --- a/Test-NoWarnings-1.04.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:638a57658cb119af1fe5b15e73d47c2544dcfef84af0c6b1b2e97f08202b686c -size 18204 diff --git a/Test-NoWarnings-1.06.tar.gz b/Test-NoWarnings-1.06.tar.gz new file mode 100644 index 0000000..b13fcd1 --- /dev/null +++ b/Test-NoWarnings-1.06.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2dc51143b7eb63231210e27df20d2c8393772e0a333547ec8b7a205ed62f737 +size 19445 diff --git a/perl-Test-NoWarnings.changes b/perl-Test-NoWarnings.changes index b5c63bd..8b99c62 100644 --- a/perl-Test-NoWarnings.changes +++ b/perl-Test-NoWarnings.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Wed Jul 28 03:10:36 UTC 2021 - Tina Müller + +- updated to 1.06 + see /usr/share/doc/packages/perl-Test-NoWarnings/Changes + + 1.06 - 2021-07-27 + - released as stable + + 1.05_01 - 2021-07-15 + - clarify docs around tests without a plan + - documentation cleanups and typo fixes + - minor code cleanups + - use warnings in tests + - skip fork test if perl can't fork + - note conflicts with Carp::Always in documentation + - Made had_no_warnings turn off the checking at END time for use with + done_testing based tests with no test count. Also added docs. + ------------------------------------------------------------------- Mon Apr 27 04:57:38 UTC 2015 - coolo@suse.com diff --git a/perl-Test-NoWarnings.spec b/perl-Test-NoWarnings.spec index 69d8d23..623552f 100644 --- a/perl-Test-NoWarnings.spec +++ b/perl-Test-NoWarnings.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Test-NoWarnings # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,23 +12,21 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: perl-Test-NoWarnings -Version: 1.04 -Release: 0 -#Upstream: SUSE-Public-Domain %define cpan_name Test-NoWarnings +Name: perl-Test-NoWarnings +Version: 1.06 +Release: 0 +#Upstream: LGPL-2.1-or-later Summary: Make sure you didn't emit any warnings while testing -License: LGPL-2.1+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Test-NoWarnings/ -Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz +License: LGPL-2.1-or-later +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::Builder) >= 0.86 @@ -40,26 +38,26 @@ Requires: perl(Test::Builder) >= 0.86 In general, your tests shouldn't produce warnings. This modules causes any warnings to be captured and stored. It automatically adds an extra test that will run when your script ends to check that there were no warnings. -If there were any warings, the test will give a "not ok" and diagnostics of -where, when and what the warning was, including a stack trace of what was -going on when the it occurred. +If there were any warnings, the test will give a "not ok" and diagnostics +of where, when and what the warning was, including a stack trace of what +was going on when the it occurred. If some of your tests *are supposed to* produce warnings then you should be -capturing and checking them with the Test::Warn manpage, that way the -Test::NoWarnings manpage will not see them and so not complain. +capturing and checking them with Test::Warn, that way Test::NoWarnings will +not see them and so not complain. The test is run by an 'END' block in Test::NoWarnings. It will not be run when any forked children exit. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -67,7 +65,7 @@ when any forked children exit. %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes LICENSE README +%doc Changes README +%license LICENSE %changelog