[perl-MetaCPAN-API] Account for new tests that require network access

Paul Howarth pghmcfc at fedoraproject.org
Mon Apr 28 14:34:32 UTC 2014


commit cbee3aea4d88dd5768f5469b9a8ab4feeea581ae
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon Apr 28 15:29:32 2014 +0100

    Account for new tests that require network access

 perl-MetaCPAN-API.spec |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/perl-MetaCPAN-API.spec b/perl-MetaCPAN-API.spec
index 9da0a5e..fdaa8f3 100644
--- a/perl-MetaCPAN-API.spec
+++ b/perl-MetaCPAN-API.spec
@@ -44,11 +44,6 @@ Please do not use this module.
 %prep
 %setup -q -n MetaCPAN-API-%{version}
 
-# remove tests that require network access in koji
-%if !%{with network_tests}
-rm -f t/author.t t/module.t t/pod.t t/release.t t/source.t
-%endif
-
 %build
 %{__perl} Build.PL installdirs=vendor
 ./Build
@@ -59,17 +54,27 @@ rm -f t/author.t t/module.t t/pod.t t/release.t t/source.t
 %{_fixperms} %{buildroot}/*
 
 %check
+# avoid tests that require network access in koji
+%if !%{with network_tests}
+mv t/{author,autocomplete,distribution,favorite,file,module,pod,release,source}.t ./
+%endif
+
 AUTHOR_TESTING=1 RELEASE_TESTING=1 ./Build test
 
+%if !%{with network_tests}
+mv ./{author,autocomplete,distribution,favorite,file,module,pod,release,source}.t t/
+%endif
+
 %files
 %doc Changes LICENSE README
-%{perl_vendorlib}/*
+%{perl_vendorlib}/MetaCPAN/
 %{_mandir}/man3/*
 
 %changelog
 * Mon Apr 28 2014 Paul Howarth <paul at city-fan.org> - 0.44-1
 - Update to 0.44
   - This module is deprecated; please use MetaCPAN::Client instead
+- Account for new tests that require network access
 
 * Sun Aug 04 2013 Petr Pisar <ppisar at redhat.com> - 0.43-6
 - Perl 5.18 rebuild



More information about the perl-devel mailing list