8
0

Compare commits

...

11 Commits

Author SHA256 Message Date
9cdaa5a8f5 Accepting request 1285257 from devel:languages:perl
- Normalize CPAN version
  See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/request/show/1285257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-NoWarnings?expand=0&rev=25
2025-06-13 16:43:11 +00:00
0345b0f11b Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-NoWarnings?expand=0&rev=29
2025-06-12 18:54:37 +00:00
311d5633a4 Accepting request 909908 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/909908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-NoWarnings?expand=0&rev=24
2021-08-05 18:47:49 +00:00
cc303b6024 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
2021-08-03 08:46:55 +00:00
Stephan Kulow
db205c24c7 Accepting request 304115 from devel:languages:perl
- regenerate using cpanspec.yml

OBS-URL: https://build.opensuse.org/request/show/304115
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-NoWarnings?expand=0&rev=23
2015-04-28 18:43:04 +00:00
Stephan Kulow
0f3530812d update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-NoWarnings?expand=0&rev=26
2015-04-27 04:59:17 +00:00
Stephan Kulow
360825273d update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-NoWarnings?expand=0&rev=25
2015-04-17 12:04:39 +00:00
Ismail Dönmez
f451c7950e Accepting request 146747 from devel:languages:perl
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/146747
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-NoWarnings?expand=0&rev=19
2013-01-02 12:00:09 +00:00
Lars Vogdt
5872742c61 - remove versioned dependency for Test::Builder to allow build on
SLE_11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-NoWarnings?expand=0&rev=23
2012-12-24 15:01:50 +00:00
Stephan Kulow
cf932c48b1 Accepting request 105946 from devel:languages:perl
- updated to 1.04
   - Added the experimental :early debugging pragma to cause warnings
     to be emitted immediately. This should stay off otherwise (ADAMK)

OBS-URL: https://build.opensuse.org/request/show/105946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-NoWarnings?expand=0&rev=17
2012-02-20 15:16:44 +00:00
Stephan Kulow
e7782db5e8 - updated to 1.04
- Added the experimental :early debugging pragma to cause warnings
     to be emitted immediately. This should stay off otherwise (ADAMK)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-NoWarnings?expand=0&rev=21
2012-02-20 08:57:11 +00:00
5 changed files with 91 additions and 28 deletions

View File

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

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

Binary file not shown.

18
cpanspec.yml Normal file
View File

@@ -0,0 +1,18 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
license: LGPL-2.1+
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@@ -1,3 +1,46 @@
-------------------------------------------------------------------
Thu Jun 12 18:54:32 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
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
- regenerate using cpanspec.yml
-------------------------------------------------------------------
Mon Dec 24 15:01:10 UTC 2012 - lars@linux-schulserver.de
- remove versioned dependency for Test::Builder to allow build on
SLE_11
-------------------------------------------------------------------
Mon Feb 20 08:38:18 UTC 2012 - coolo@suse.com
- updated to 1.04
- Added the experimental :early debugging pragma to cause warnings
to be emitted immediately. This should stay off otherwise (ADAMK)
-------------------------------------------------------------------
Mon Sep 19 09:22:10 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-NoWarnings
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,55 +12,57 @@
# 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.03
Release: 1
License: LGPL-2.1+
%define cpan_name Test-NoWarnings
Name: perl-Test-NoWarnings
Version: 1.60.0
Release: 0
# 1.06 -> normalize -> 1.60.0
%define cpan_version 1.06
#Upstream: LGPL-2.1-or-later
License: LGPL-2.1-or-later
Summary: Make sure you didn't emit any warnings while testing
Url: http://search.cpan.org/dist/Test-NoWarnings/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Builder) >= 0.86
BuildRequires: perl(Test::Tester) >= 0.107
#BuildRequires: perl(Test::NoWarnings)
#BuildRequires: perl(Test::NoWarnings::Warning)
Requires: perl(Test::Builder) >= 0.86
Provides: perl(Test::NoWarnings) = %{version}
Provides: perl(Test::NoWarnings::Warning) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
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
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}-%{cpan_version} -p1
%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
@@ -68,7 +70,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