Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Perl
perl-Test-NoWarnings
perl-Test-NoWarnings.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Test-NoWarnings.spec of Package perl-Test-NoWarnings
# # spec file for package perl-Test-NoWarnings # # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # Name: perl-Test-NoWarnings %define real_name Test-NoWarnings Summary: Make sure you didn't emit any warnings while testing Url: http://search.cpan.org/perldoc?Test::NoWarnings Group: Development/Libraries/Perl License: Artistic License Version: 0.084 Release: 1.1 Source: %{real_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl-Test-Tester BuildRequires: perl(ExtUtils::MakeMaker) %if 0%{?fedora_version} BuildRequires: perl-devel %endif %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 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. Author: ------- Fergal Daly %prep %setup -n %{real_name}-%{version} %build perl Makefile.PL make %{?jobs:-j%jobs} %check make test %install %if 0%{?suse_version} %perl_make_install %perl_process_packlist %else make DESTDIR=$RPM_BUILD_ROOT install_vendor find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {} find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null %endif %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc README MANIFEST %doc %{_mandir}/man?/* %dir %{perl_vendorlib}/Test %dir %{perl_vendorlib}/Test/NoWarnings %dir %{perl_vendorarch}/auto/Test %dir %{perl_vendorarch}/auto/Test/NoWarnings %{perl_vendorlib}/Test/*.pm %{perl_vendorlib}/Test/NoWarnings/*.pm %{perl_vendorarch}/auto/Test/NoWarnings/.packlist %if 0%{?suse_version} /var/adm/perl-modules/%{name} %endif %changelog * Thu May 31 2012 Holger Manthey <holger.manthey@bertelsmann.de> - remove perl-version require * Sat Apr 4 2009 Holger Manthey <holger.manthey@bertelsmann.de> - Build for centos * Mon Aug 11 2008 lrupp@suse.de - initial version 0.084
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor