[perl-Digest-BubbleBabble: 18/18] Run author tests

Paul Howarth pghmcfc at fedoraproject.org
Thu Mar 24 11:28:26 UTC 2011


commit 9ac49e71188a4aaf294102eab6c52119047bac53
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Mar 24 11:26:08 2011 +0000

    Run author tests
    
    Add buildreqs perl(Digest::SHA1), perl(Test::Pod) and perl(Test::Synopsis)
    and run author tests

 perl-Digest-BubbleBabble.spec |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/perl-Digest-BubbleBabble.spec b/perl-Digest-BubbleBabble.spec
index 3ca03cf..0a2f501 100644
--- a/perl-Digest-BubbleBabble.spec
+++ b/perl-Digest-BubbleBabble.spec
@@ -10,6 +10,12 @@ BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:	noarch
 Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Test::Pod)
+# Test::Synopsis requires Test::Builder::Module, available from Perl 5.8.8 (EL-5)
+# Digest::SHA1 is only used in the Synopsis code to be tested by Test::Synopsis
+%if %(perl -e 'print (($] >= 5.008008) ? 1 : 0);')
+BuildRequires:	perl(Digest::SHA1), perl(Test::Synopsis)
+%endif
 
 %description
 Digest::BubbleBabble takes a message digest (generated by either of the MD5 or
@@ -32,9 +38,6 @@ fingerprint.
 perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
-%check
-make test
-
 %install
 rm -rf %{buildroot}
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
@@ -42,6 +45,10 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
 %{_fixperms} %{buildroot}
 
+%check
+make test
+make test TEST_FILES="xt/*.t"
+
 %clean
 rm -rf %{buildroot}
 
@@ -61,6 +68,8 @@ rm -rf %{buildroot}
     them pass the compilation test
 - Nobody else likes macros for commands
 - Use %%{_fixperms} macro instead of our own chmod incantation
+- Add buildreqs perl(Digest::SHA1), perl(Test::Pod) and perl(Test::Synopsis)
+  and run author tests
 
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.01-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild



More information about the perl-devel mailing list