diff --git a/Test-Warnings-0.004.tar.gz b/Test-Warnings-0.004.tar.gz deleted file mode 100644 index 16ff71e..0000000 --- a/Test-Warnings-0.004.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6c680542e2e2bedb516bea6703cd7ddfc588fa327ef24d874d27de3eea60d10 -size 20537 diff --git a/Test-Warnings-0.008.tar.gz b/Test-Warnings-0.008.tar.gz new file mode 100644 index 0000000..35b7b71 --- /dev/null +++ b/Test-Warnings-0.008.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:119f2a279fe7d0681dcf4517f1bcb056e4596cfbae7b9ee447118f036cf089e4 +size 21853 diff --git a/perl-Test-Warnings.changes b/perl-Test-Warnings.changes index 55bfe91..11a5f33 100644 --- a/perl-Test-Warnings.changes +++ b/perl-Test-Warnings.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Jul 27 11:58:35 UTC 2013 - coolo@suse.com + +- updated to 0.008 + - compile test updated, to hopefully fix mswin32 parsing issues + - fix subtest tests to work on Test::More before 0.95_01 + (RT#86802) + - remove use of Class::Method::Modifiers + - new feature: warnings { code } and warning { code }, for capturing + the contents of warnings for subsequent testing + ------------------------------------------------------------------- Tue Jun 4 11:10:31 UTC 2013 - coolo@suse.com diff --git a/perl-Test-Warnings.spec b/perl-Test-Warnings.spec index c513e53..13638a2 100644 --- a/perl-Test-Warnings.spec +++ b/perl-Test-Warnings.spec @@ -17,7 +17,7 @@ Name: perl-Test-Warnings -Version: 0.004 +Version: 0.008 Release: 0 %define cpan_name Test-Warnings Summary: Test for warnings and the lack of them @@ -29,18 +29,22 @@ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Class::Method::Modifiers) -BuildRequires: perl(Test::CheckDeps) >= 0.002 +BuildRequires: perl(Capture::Tiny) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::Build::Tiny) >= 0.025 +BuildRequires: perl(Test::CheckDeps) >= 0.006 +BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(Test::Tester) >= 0.108 BuildRequires: perl(parent) +#BuildRequires: perl(Pod::Coverage::TrustPod) #BuildRequires: perl(TB2::Tester) #BuildRequires: perl(TB2::TestState) #BuildRequires: perl(Test::CleanNamespaces) #BuildRequires: perl(Test::NoWarnings) >= 1.04 -#BuildRequires: perl(Test::Pod::Coverage) +#BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +#BuildRequires: perl(Test::Vars) #BuildRequires: perl(Test::Warnings) -Requires: perl(Class::Method::Modifiers) Requires: perl(parent) %{perl_requires} @@ -67,19 +71,21 @@ as warnings are still printed normally as they occur. You are safe, and enthusiastically encouraged, to perform a global search-replace of the above with 'use Test::Warnings;' whether or not your tests have a plan. +It can also be used as a replacement for the Test::Warn manpage, if you +wish to test the content of expected warnings; read on to find out how. + %prep %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +%{__perl} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} %check -%{__make} test +./Build test %install -%perl_make_install -%perl_process_packlist +./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files