[perl-PPIx-Utilities] Run extra tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit e5bc9bb478499c7eb888d5baf8ae02fb37ad88b6
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Fri Oct 26 15:48:54 2012 +0100

    Run extra tests
    
    - Drop redundant %perl_default_filter
    - Run extra tests (and include necessary buildreqs) except when bootstrapping

 perl-PPIx-Utilities.spec |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/perl-PPIx-Utilities.spec b/perl-PPIx-Utilities.spec
index 199a020..db6a4fc 100644
--- a/perl-PPIx-Utilities.spec
+++ b/perl-PPIx-Utilities.spec
@@ -1,12 +1,13 @@
 Name:		perl-PPIx-Utilities
 Version:	1.001000
-Release:	7%{?dist}
+Release:	8%{?dist}
 Summary:	Extensions to PPI
 Group:		Development/Libraries
 License:	GPL+ or Artistic
 URL:		http://search.cpan.org/dist/PPIx-Utilities/
 Source0:	http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/PPIx-Utilities-%{version}.tar.gz
 BuildArch:	noarch
+# Build:
 BuildRequires:	perl(ExtUtils::MakeMaker)
 # Run-time:
 BuildRequires:	perl(base)
@@ -23,9 +24,20 @@ BuildRequires:	perl(PPI::Dumper) >= 1.208
 BuildRequires:	perl(Task::Weaken)
 BuildRequires:	perl(Test::Deep)
 BuildRequires:	perl(Test::More)
-Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-%{?perl_default_filter}
+# Extra tests:
+# PPI needed by Perl::Critic, so don't run extra tests when bootstrapping
+%if 0%{!?perl_bootstrap:1}
+BuildRequires:	aspell-en
+BuildRequires:	perl(File::Slurp)
+BuildRequires:	perl(Perl::Critic::Policy::Miscellanea::RequireRcsKeywords)
+BuildRequires:	perl(Test::Perl::Critic)
+BuildRequires:	perl(Test::Distribution)
+BuildRequires:	perl(Test::Kwalitee)
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Pod::Coverage)
+%endif
+# Run-time:
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 This is a collection of functions for dealing with PPI objects, many of
@@ -48,6 +60,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 
 %check
 make test
+%if 0%{!?perl_bootstrap:1}
+make test TEST_FILES="$(echo $(find xt/ -name '*.t' | grep -Fv copyright.t))"
+%endif
 
 %files
 %doc Changes LICENSE README
@@ -58,6 +73,10 @@ make test
 %{_mandir}/man3/PPIx::Utilities::Statement.3pm*
 
 %changelog
+* Fri Oct 26 2012 Paul Howarth <paul@xxxxxxxxxxxx> - 1.001000-8
+- Drop redundant %%perl_default_filter
+- Run extra tests (and include necessary buildreqs) except when bootstrapping
+
 * Thu Oct 25 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.001000-7
 - Specify all dependencies
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux