diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 59706c0..58c8b11 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -11,3 +11,4 @@ MANIFEST\.SKIP pm_to_blib ^blib ^\.git +^xt/ diff --git a/xt/00-check-changelog.t b/xt/00-check-changelog.t new file mode 100644 index 0000000..39aa678 --- /dev/null +++ b/xt/00-check-changelog.t @@ -0,0 +1,17 @@ +use Test::More tests => 1; + +use strict; +use warnings; + +use CPAN::Changes; +use Data::Dumper; + +my $changes = CPAN::Changes->load('Changes'); + +ok($changes); + +my @releases = map { +{ $_->version => $_->date } } $changes->releases; + +note Dumper \@releases; + +done_testing; diff --git a/xt/manifest.t b/xt/manifest.t new file mode 100644 index 0000000..a817ebc --- /dev/null +++ b/xt/manifest.t @@ -0,0 +1,12 @@ +use strict; +use warnings; +use Test::More; +use ExtUtils::Manifest; + +unless ( $ENV{RELEASE_TESTING} ) { + plan( skip_all => "Author tests not required for installation" ); +} +plan tests => 2; + +is_deeply [ ExtUtils::Manifest::manicheck() ], [], 'missing'; +is_deeply [ ExtUtils::Manifest::filecheck() ], [], 'extra';