Control extra test by _without_perl_Dist_CheckConflicts_enables_extra_test
This commit is contained in:
parent
d85b85c47e
commit
7bd40a0d44
@ -1,5 +1,11 @@
|
|||||||
# We need to patch the test suite if we have an old version of Test::More
|
# We need to patch the test suite if we have an old version of Test::More
|
||||||
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
||||||
|
# Run extra test
|
||||||
|
%if 0%{?fedora}
|
||||||
|
%bcond_without perl_Dist_CheckConflicts_enables_extra_test
|
||||||
|
%else
|
||||||
|
%bcond_with perl_Dist_CheckConflicts_enables_extra_test
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: perl-Dist-CheckConflicts
|
Name: perl-Dist-CheckConflicts
|
||||||
Version: 0.11
|
Version: 0.11
|
||||||
@ -30,7 +36,7 @@ BuildRequires: perl(lib)
|
|||||||
BuildRequires: perl(Test::Fatal)
|
BuildRequires: perl(Test::Fatal)
|
||||||
BuildRequires: perl(Test::More) >= 0.47
|
BuildRequires: perl(Test::More) >= 0.47
|
||||||
# Extra Tests
|
# Extra Tests
|
||||||
%if 0%{?fedora}
|
%if %{with perl_Dist_CheckConflicts_enables_extra_test}
|
||||||
BuildRequires: perl(Pod::Coverage::TrustPod)
|
BuildRequires: perl(Pod::Coverage::TrustPod)
|
||||||
BuildRequires: perl(Test::EOL)
|
BuildRequires: perl(Test::EOL)
|
||||||
BuildRequires: perl(Test::NoTabs)
|
BuildRequires: perl(Test::NoTabs)
|
||||||
@ -78,7 +84,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
%if 0%{?fedora}
|
%if %{with perl_Dist_CheckConflicts_enables_extra_test}
|
||||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user