Disable extra tests on RHEL

epel9
Petr Písař 7 years ago
parent bcecb1fafc
commit a0eb33dccd

@ -1,3 +1,10 @@
# Run extra tests
%if 0%{?rhel}
%bcond_with perl_Config_Tiny_enables_extra_test
%else
%bcond_without perl_Config_Tiny_enables_extra_test
%endif
Name: perl-Config-Tiny Name: perl-Config-Tiny
Version: 2.23 Version: 2.23
Release: 11%{?dist} Release: 11%{?dist}
@ -23,6 +30,7 @@ BuildRequires: perl(File::Temp) >= 0.22
BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(UNIVERSAL) BuildRequires: perl(UNIVERSAL)
BuildRequires: perl(utf8) BuildRequires: perl(utf8)
%if %{with perl_Config_Tiny_enables_extra_test}
# Extra Tests # Extra Tests
BuildRequires: perl(Test::CPAN::Meta) >= 0.17 BuildRequires: perl(Test::CPAN::Meta) >= 0.17
# Test::MinimumVersion → Perl::MinimumVersion → Perl::Critic → Config::Tiny # Test::MinimumVersion → Perl::MinimumVersion → Perl::Critic → Config::Tiny
@ -30,6 +38,7 @@ BuildRequires: perl(Test::CPAN::Meta) >= 0.17
BuildRequires: perl(Test::MinimumVersion) >= 0.101080 BuildRequires: perl(Test::MinimumVersion) >= 0.101080
%endif %endif
BuildRequires: perl(Test::Pod) >= 1.44 BuildRequires: perl(Test::Pod) >= 1.44
%endif
# Runtime # Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -52,7 +61,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%check %check
make test make test
%if %{with perl_Config_Tiny_enables_extra_test}
make test TEST_FILES="xt/*.t" AUTOMATED_TESTING=1 make test TEST_FILES="xt/*.t" AUTOMATED_TESTING=1
%endif
%files %files
%license LICENSE %license LICENSE

Loading…
Cancel
Save