[dpkg] 13/28: test: Check POD in all perl scripts

Mattia Rizzolo mattia at debian.org
Mon Jan 22 17:11:23 UTC 2018


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

mattia pushed a commit to branch master
in repository dpkg.

commit 11e20af76b831cb569950c341cf78c55d7ad9a00
Author: Guillem Jover <guillem at debian.org>
Date:   Sun Oct 29 18:17:07 2017 +0100

    test: Check POD in all perl scripts
    
    We should check POD syntax in any perl script that contains it, not just
    within the Dpkg perl modules.
---
 debian/changelog | 1 +
 t/pod.t          | 6 ++----
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0de3c8b..85921f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -48,6 +48,7 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
     - Bump Standards-Version to 4.1.1 (no changes needed).
   * Test suite:
     - Skip Dpkg::OpenPGP test if gpg is not present.
+    - Check POD in all perl scripts.
 
   [ Updated programs translations ]
   * Dutch (Frans Spiesschaert). Closes: #881401
diff --git a/t/pod.t b/t/pod.t
index e68ab2f..680550a 100644
--- a/t/pod.t
+++ b/t/pod.t
@@ -17,13 +17,11 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Dpkg qw(:needs);
+use Test::Dpkg qw(:needs :paths);
 
 test_needs_module('Test::Pod', '1.00');
 test_needs_srcdir_switch();
 
-my @dirs = qw(scripts/Dpkg);
-my @files = qw(scripts/Dpkg.pm);
-push @files, all_pod_files(@dirs);
+my @files = Test::Dpkg::all_perl_files();
 
 all_pod_files_ok(@files);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list