[libimage-sane-perl] 03/10: Rewrite debian/patches/manifest.

gregor herrmann gregoa at debian.org
Sat Jul 15 18:23:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libimage-sane-perl.

commit bb8d8f4dbc2215c015a9a2ab1528d5f708818111
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Jul 15 19:56:37 2017 +0200

    Rewrite debian/patches/manifest.
---
 debian/patches/manifest | 47 ++++++++++++++++++++++++-----------------------
 1 file changed, 24 insertions(+), 23 deletions(-)

diff --git a/debian/patches/manifest b/debian/patches/manifest
index cc75235..3eaa720 100644
--- a/debian/patches/manifest
+++ b/debian/patches/manifest
@@ -1,27 +1,28 @@
-# Disable MANIFEST test, as this is only interesting for the author, and is
-# confused by the debian-perl team git repo.
-# Author: Jeffrey Ratcliffe <jjr at debian.org>
+Subject: Disable MANIFEST test, as this is only interesting for the author, and is
+ confused by the debian-perl team git repo.
+Author: Jeffrey Ratcliffe <jjr at debian.org>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2017-07-15
+
 --- a/t/90_MANIFEST.t
 +++ b/t/90_MANIFEST.t
-@@ -2,20 +2,4 @@
+@@ -2,7 +2,12 @@
  use warnings;
- use Test::More;
+ use English;
+ use Image::Sane ':all';
+-use Test::More tests => 2;
++use Test::More;
++
++if ( not $ENV{TEST_AUTHOR} ) {
++    my $msg = 'Author test.  Set $ENV{TEST_AUTHOR} to a true value to run.';
++    plan( skip_all => $msg );
++}
  
--my $git;
--if (
--    -d '.git'
--    and
--    eval { $git = `git ls-tree --name-status -r HEAD | egrep -v '^\.(git|be)'` }
--  )
--{
--    plan( tests => 1 );
--}
--else {
--    my $msg = 'Need the git repository to compare the MANIFEST.';
--    plan( skip_all => $msg );
--}
--
--my $manifest = `cat MANIFEST`;
--
--ok( $git eq $manifest, 'MANIFEST up to date' );
-+plan( skip_all => 'This is only interesting for the author' );
+ my $git;
+ SKIP: {
+@@ -34,3 +39,5 @@
+ else {
+     fail 'version string not found';
+ }
++
++done_testing;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libimage-sane-perl.git



More information about the Pkg-perl-cvs-commits mailing list