Run the author tests if we're not bootstrapping

This commit is contained in:
Paul Howarth 2011-06-29 20:01:46 +01:00
parent fbad33c454
commit 5eb7be0114
1 changed files with 4 additions and 9 deletions

View File

@ -1,5 +1,3 @@
%bcond_with authortests
Name: perl-Perl-Critic
Version: 1.116
Release: 2%{?dist}
@ -75,8 +73,8 @@ BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Memory::Cycle)
BuildRequires: perl(Test::More)
# Author tests
%if %{with authortests}
# Author tests: not run if we're bootstrapping
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(Devel::EnforceEncapsulation)
BuildRequires: perl(Perl::Critic::Policy::Editor::RequireEmacsFileVariables)
BuildRequires: perl(Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions)
@ -134,11 +132,7 @@ find . -type f -exec chmod -c -x {} +
%check
%if %{with authortests}
LC_ALL=en_US ./Build authortest
%else
LC_ALL=en_US ./Build test
%endif
LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
%files
@ -159,6 +153,7 @@ LC_ALL=en_US ./Build test
%changelog
* Wed Jun 29 2011 Paul Howarth <paul@city-fan.org> - 1.116-2
- move BR: perl(Test::Perl::Critic) to author test section where it belongs
- run the author tests if we're not bootstrapping
* Mon May 16 2011 Paul Howarth <paul@city-fan.org> - 1.116-1
- update to 1.116