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

View File

@ -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