Do not run extra tests on RHEL

This commit is contained in:
Jitka Plesnikova 2018-04-11 22:12:01 +02:00
parent 27d60487c5
commit c32db84006
1 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
# Run extra test
%if ! (0%{?rhel})
%bcond_without perl_PPIx_Utilities_enables_extra_test
%else
%bcond_with perl_PPIx_Utilities_enables_extra_test
%endif
Name: perl-PPIx-Utilities
Version: 1.001000
Release: 27%{?dist}
@ -30,7 +37,7 @@ BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
# Extra tests:
# PPI needed by Perl::Critic, so don't run extra tests when bootstrapping
%if 0%{!?perl_bootstrap:1}
%if 0%{!?perl_bootstrap:1} && %{with perl_PPIx_Utilities_enables_extra_test}
BuildRequires: aspell-en
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Slurp)
@ -70,7 +77,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%check
make test
%if 0%{!?perl_bootstrap:1}
%if 0%{!?perl_bootstrap:1} && %{with perl_PPIx_Utilities_enables_extra_test}
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%endif