diff options
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | t/changes.t | 46 |
3 files changed, 49 insertions, 0 deletions
@@ -2,6 +2,8 @@ Revision history for Perl distribution libnet 3.03 Development + - Added optional Changes testing (skipped unless AUTHOR_TESTING). + - Reformatted Changes file as per CPAN::Changes::Spec. 3.02 2014-10-10 @@ -25,6 +25,7 @@ lib/Net/POP3.pm Post Office Protocol lib/Net/SMTP.pm Simple Mail Transfer Protocol Client lib/Net/Time.pm time & nettime protocols lib/Net/libnetFAQ.pod +t/changes.t t/config.t t/critic.t t/datasend.t diff --git a/t/changes.t b/t/changes.t new file mode 100644 index 0000000..7cb6378 --- /dev/null +++ b/t/changes.t @@ -0,0 +1,46 @@ +#!perl
+#===============================================================================
+#
+# t/changes.t
+#
+# DESCRIPTION
+# Test script to check CPAN::Changes conformance.
+#
+# COPYRIGHT
+# Copyright (C) 2014 Steve Hay. All rights reserved.
+#
+# LICENCE
+# You may distribute under the terms of either the GNU General Public License
+# or the Artistic License, as specified in the LICENCE file.
+#
+#===============================================================================
+
+use 5.008001;
+
+use strict;
+use warnings;
+
+use Test::More;
+
+#===============================================================================
+# MAIN PROGRAM
+#===============================================================================
+
+MAIN: {
+ plan skip_all => 'Author testing only' unless $ENV{AUTHOR_TESTING};
+
+ my $ok = eval {
+ require Test::CPAN::Changes;
+ Test::CPAN::Changes->import();
+ 1;
+ };
+
+ if (not $ok) {
+ plan skip_all => 'Test::CPAN::Changes required to test Changes';
+ }
+ else {
+ changes_ok();
+ }
+}
+
+#===============================================================================
|