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
This commit is contained in:
Dirk Stoecker 2021-08-03 08:46:55 +00:00 committed by Git OBS Bridge
parent 0f3530812d
commit cc303b6024
4 changed files with 42 additions and 25 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:638a57658cb119af1fe5b15e73d47c2544dcfef84af0c6b1b2e97f08202b686c
size 18204

BIN
Test-NoWarnings-1.06.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed Jul 28 03:10:36 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- 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 Mon Apr 27 04:57:38 UTC 2015 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package perl-Test-NoWarnings # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 %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 Summary: Make sure you didn't emit any warnings while testing
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name}
Url: http://search.cpan.org/dist/Test-NoWarnings/ Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Test::Builder) >= 0.86 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 In general, your tests shouldn't produce warnings. This modules causes any
warnings to be captured and stored. It automatically adds an extra test 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. 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 If there were any warnings, the test will give a "not ok" and diagnostics
where, when and what the warning was, including a stack trace of what was of where, when and what the warning was, including a stack trace of what
going on when the it occurred. was going on when the it occurred.
If some of your tests *are supposed to* produce warnings then you should be 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 capturing and checking them with Test::Warn, that way Test::NoWarnings will
Test::NoWarnings manpage will not see them and so not complain. not see them and so not complain.
The test is run by an 'END' block in Test::NoWarnings. It will not be run The test is run by an 'END' block in Test::NoWarnings. It will not be run
when any forked children exit. when any forked children exit.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@ -67,7 +65,7 @@ when any forked children exit.
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes README
%doc Changes LICENSE README %license LICENSE
%changelog %changelog