[dh-make-perl] 03/04: add release test for module versions

gregor herrmann gregoa at debian.org
Tue Apr 5 15:29:10 UTC 2016


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

gregoa pushed a commit to branch master
in repository dh-make-perl.

commit 9129286546be679dd95926b66cd05d0bbdbff6ab
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Apr 5 17:21:12 2016 +0200

    add release test for module versions
    
    Gbp-Dch: Ignore
---
 t/module-versions.t | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/t/module-versions.t b/t/module-versions.t
new file mode 100644
index 0000000..48a5bad
--- /dev/null
+++ b/t/module-versions.t
@@ -0,0 +1,20 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use Test::More;
+
+plan skip_all => "This is a release-time test" unless $ENV{RELEASE_TESTING};
+
+eval q{use Test::Version 1.004001 qw( version_all_ok ), {
+        is_strict   => 1,
+        has_version => 1,
+        consistent  => 1,
+        };
+};
+plan skip_all =>
+    "Test::Version 1.004001 required for testing version numbers"
+    if $@;
+
+version_all_ok();
+done_testing;

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



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