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