forked from pool/perl-Test-NoWarnings
Compare commits
11 Commits
ad4a2c7d00
...
9cdaa5a8f5
Author | SHA256 | Date | |
---|---|---|---|
9cdaa5a8f5 | |||
0345b0f11b | |||
311d5633a4 | |||
cc303b6024 | |||
|
db205c24c7 | ||
|
0f3530812d | ||
|
360825273d | ||
|
f451c7950e | ||
|
5872742c61 | ||
|
cf932c48b1 | ||
|
e7782db5e8 |
@@ -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
BIN
Test-NoWarnings-1.06.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
18
cpanspec.yml
Normal file
18
cpanspec.yml
Normal 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
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user