Control running extra tests with a condition
This commit is contained in:
parent
07fc0d8112
commit
7b062a97a7
|
@ -4,6 +4,12 @@
|
|||
%else
|
||||
%bcond_with perl_YAML_enables_test
|
||||
%endif
|
||||
# Run extra test
|
||||
%if ! (0%{?rhel})
|
||||
%bcond_without perl_YAML_enables_extra_test
|
||||
%else
|
||||
%bcond_with perl_YAML_enables_extra_test
|
||||
%endif
|
||||
|
||||
Name: perl-YAML
|
||||
Version: 1.26
|
||||
|
@ -43,9 +49,11 @@ BuildRequires: perl(Test::Deep)
|
|||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Test::YAML) >= 1.05
|
||||
BuildRequires: perl(utf8)
|
||||
%if %{with perl_YAML_enables_extra_test}
|
||||
# Author Tests
|
||||
BuildRequires: perl(Test::Pod) >= 1.41
|
||||
%endif
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(B::Deparse)
|
||||
|
@ -77,7 +85,7 @@ make install DESTDIR=%{buildroot}
|
|||
%check
|
||||
# Avoid circular build deps Test::YAML → Test::Base → YAML when bootstrapping
|
||||
%if %{with perl_YAML_enables_test} && !%{defined perl_bootstrap}
|
||||
make test AUTHOR_TESTING=1
|
||||
make test AUTHOR_TESTING=%{with perl_YAML_enables_extra_test}
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
|
Loading…
Reference in New Issue