From e1a1909e2c42e022e2d232127d7044c48b6f42ab5562faf1392e8e537ed76923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 18:53:16 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-Test-NoWarnings revision 3d0d6523025c02dab26c5f43208a2fb5 --- .gitattributes | 23 +++++++++ Test-NoWarnings-1.06.tar.gz | 3 ++ cpanspec.yml | 18 +++++++ perl-Test-NoWarnings.changes | 93 ++++++++++++++++++++++++++++++++++++ perl-Test-NoWarnings.spec | 71 +++++++++++++++++++++++++++ 5 files changed, 208 insertions(+) create mode 100644 .gitattributes create mode 100644 Test-NoWarnings-1.06.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Test-NoWarnings.changes create mode 100644 perl-Test-NoWarnings.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text 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/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..cc8c508 --- /dev/null +++ b/cpanspec.yml @@ -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 diff --git a/perl-Test-NoWarnings.changes b/perl-Test-NoWarnings.changes new file mode 100644 index 0000000..8b99c62 --- /dev/null +++ b/perl-Test-NoWarnings.changes @@ -0,0 +1,93 @@ +------------------------------------------------------------------- +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 + +- 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 + +- updated to 1.03 + - Test::Builder and Test::Tester dependencies were the wrong way + around, corrected (ADAMK) + +------------------------------------------------------------------- +Tue Mar 15 09:10:02 UTC 2011 - cfarrell@novell.com + +- license update: LGPLv2.1+ + See LICENSE file and README: Clearly, this is not Artistic, but LGPLv2.1 licensed + +------------------------------------------------------------------- +Wed Dec 1 06:55:43 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Mon Sep 13 12:51:49 UTC 2010 - lars@linux-schulserver.de + +- update to 1.02: + + Remove the need for a private variable when detecting + Devel::StackTrace support + + Don't import unused functions from Carp or Test::Builder + + Minor documentation tweaks + + Correct the repository metadata in META.yml + + Minor cleanups in the eumm-update generated code + + Added a dedicated compile test + +------------------------------------------------------------------- +Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de + +- enable parallel build + +------------------------------------------------------------------- +Sat Jul 25 19:44:36 CEST 2009 - chris@computersalat.de + +- spec mods + * removed ^---------- + * removed ^#--------- + +------------------------------------------------------------------- +Sat Jun 20 22:51:02 CEST 2009 - chris@computersalat.de + +- added perl-macros + o autogen filelist with perl_gen_filelist +- spec mods + o added header + o fixed deps + +------------------------------------------------------------------- +Mon Aug 11 19:54:27 CEST 2008 - lrupp@suse.de + +- initial version 0.084 + diff --git a/perl-Test-NoWarnings.spec b/perl-Test-NoWarnings.spec new file mode 100644 index 0000000..623552f --- /dev/null +++ b/perl-Test-NoWarnings.spec @@ -0,0 +1,71 @@ +# +# spec file for package perl-Test-NoWarnings +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%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-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 +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Test::Builder) >= 0.86 +BuildRequires: perl(Test::Tester) >= 0.107 +Requires: perl(Test::Builder) >= 0.86 +%{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 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 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 +%autosetup -n %{cpan_name}-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes README +%license LICENSE + +%changelog