Control additional tests with build conditions
This commit is contained in:
parent
c333851594
commit
bc84cffa26
@ -1,3 +1,8 @@
|
||||
# Run extra test
|
||||
%bcond_without perl_Data_Section_enables_extra_test
|
||||
# Run optional test
|
||||
%bcond_without perl_Data_Section_enables_optional_test
|
||||
|
||||
Name: perl-Data-Section
|
||||
Version: 0.200007
|
||||
Release: 2%{?dist}
|
||||
@ -25,10 +30,14 @@ BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::FailWarnings)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
BuildRequires: perl(utf8)
|
||||
%if %{with perl_Data_Section_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||
%endif
|
||||
%if %{with perl_Data_Section_enables_extra_test}
|
||||
# Extra Tests
|
||||
BuildRequires: perl(Test::Pod) >= 1.41
|
||||
%endif
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
@ -51,7 +60,9 @@ find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
|
||||
%check
|
||||
make test
|
||||
%if %{with perl_Data_Section_enables_extra_test}
|
||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user