forked from pool/perl-Test-Most
Accepting request 177508 from home:coolo:update-perl
- updated to 0.31
- Fix "You tried to plan twice" bug (reported on #78564)
- Bugfix: Moose can now be used safely as we exclude
Test::Deep::blessed by default (multiple reports)
- Bugfix from Randy Stauner. Time::HiRes eval test uses $@, not @_
- carp instead of warn (Olivier Mengué)
- Remove autogenerated files (Olivier Mengué)
OBS-URL: https://build.opensuse.org/request/show/177508
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Most?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
c86e9c3479
commit
1f81f43b98
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:abc41e1e15b472df0a87ef2204ddc4736723022c446d83535ffd2b751b47330d
|
||||
size 16696
|
||||
3
Test-Most-0.31.tar.gz
Normal file
3
Test-Most-0.31.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0ddc6034dc7cde3631dde41ecb558ed823fc07804bfd051b8ec9a70131862ab7
|
||||
size 18272
|
||||
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 4 15:05:24 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.31
|
||||
- Fix "You tried to plan twice" bug (reported on #78564)
|
||||
- Bugfix: Moose can now be used safely as we exclude
|
||||
Test::Deep::blessed by default (multiple reports)
|
||||
- Bugfix from Randy Stauner. Time::HiRes eval test uses $@, not @_
|
||||
- carp instead of warn (Olivier Mengué)
|
||||
- Remove autogenerated files (Olivier Mengué)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 27 13:06:48 UTC 2011 - coolo@suse.com
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
#
|
||||
# spec file for package perl-Test-Most
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,21 +14,23 @@
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Test-Most
|
||||
Version: 0.25
|
||||
Version: 0.31
|
||||
Release: 0
|
||||
Summary: Most commonly needed test functions and features
|
||||
%define cpan_name Test-Most
|
||||
Summary: Most commonly needed test functions and features.
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-Most-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/Test-Most/
|
||||
Source: http://www.cpan.org/authors/id/O/OV/OVID/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Exception::Class) >= 1.14
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(Module::Build) >= 0.4000
|
||||
BuildRequires: perl(Test::Deep) >= 0.106
|
||||
BuildRequires: perl(Test::Differences) >= 0.61
|
||||
BuildRequires: perl(Test::Exception) >= 0.31
|
||||
@@ -47,46 +48,53 @@ Requires: perl(Test::Harness) >= 3.21
|
||||
Requires: perl(Test::More) >= 0.88
|
||||
Requires: perl(Test::Warn) >= 0.23
|
||||
Recommends: perl(Data::Dumper::Names) >= 0.03
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Test::Most exists to reduce boilerplate and to make your testing life easier.
|
||||
We provide "one stop shopping" for most commonly used testing modules. In fact,
|
||||
we often require the latest versions so that you get bug fixes through
|
||||
Test::Most and don't have to keep upgrading these modules separately.
|
||||
the Test::Most manpage exists to reduce boilerplate and to make your
|
||||
testing life easier. We provide "one stop shopping" for most commonly used
|
||||
testing modules. In fact, we often require the latest versions so that you
|
||||
get bug fixes through the Test::Most manpage and don't have to keep
|
||||
upgrading these modules separately.
|
||||
|
||||
This module provides you with the most commonly used testing functions, along
|
||||
with automatically turning on strict and warning and gives you a bit more
|
||||
fine-grained control over your test suite.
|
||||
This module provides you with the most commonly used testing functions,
|
||||
along with automatically turning on strict and warning and gives you a bit
|
||||
more fine-grained control over your test suite.
|
||||
|
||||
use Test::Most tests => 4, 'die';
|
||||
|
||||
ok 1, 'Normal calls to ok() should succeed';
|
||||
is 2, 2, '... as should all passing tests';
|
||||
eq_or_diff [3], [4], '... but failing tests should die';
|
||||
ok 4, '... will never get to here';
|
||||
|
||||
As you can see, the 'eq_or_diff' test will fail. Because 'die' is in the
|
||||
import list, the test program will halt at that point.
|
||||
|
||||
If you do not want strict and warnings enabled, you must explicitly disable
|
||||
them. Thus, you must be explicit about what you want and no longer need to
|
||||
worry about accidentally forgetting them.
|
||||
|
||||
use Test::Most tests => 4;
|
||||
no strict;
|
||||
no warnings;
|
||||
|
||||
%prep
|
||||
%setup -q -n "Test-Most-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120
|
||||
%check
|
||||
%__make test
|
||||
%endif
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%dir %{perl_vendorlib}/Test
|
||||
%{perl_vendorlib}/Test/Most.pm
|
||||
%{perl_vendorlib}/Test/Most
|
||||
%dir %{perl_vendorarch}/auto/Test
|
||||
%{perl_vendorarch}/auto/Test/Most
|
||||
%doc %{perl_man3dir}/Test::Most.%{perl_man3ext}%{ext_man}
|
||||
%doc %{perl_man3dir}/Test::Most::*.%{perl_man3ext}%{ext_man}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README xt
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user