Skip to content

Commit

Permalink
Add manifest-checking test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 13, 2015
1 parent 77076b6 commit b8c25c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -48,7 +48,7 @@ before_install:
install:
- cpan-install --deps # installs prereqs, including recommends
- cpan-install --coverage # installs converage prereqs, if enabled
- prove t/00-report-prereqs.t
- prove t/00-report-prereqs.t t/01-checkmanifest.t
# SYSTEM_CORES set by travis-perl-helpers
- if [ "$SERIAL_BUILD" == 1 ]; then make; else make -j$(( $SYSTEM_CORES * 2 )); fi
before_script:
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -675,6 +675,7 @@ pdldoc
perldl
perldl.conf
t/00-report-prereqs.t
t/01-checkmanifest.t
t/aaa_load.t
t/argtest.t
t/autoload.t
Expand Down
5 changes: 4 additions & 1 deletion t/01-checkmanifest.t
Expand Up @@ -3,7 +3,10 @@
use Test::More tests => 1;
use ExtUtils::Manifest qw(manicheck);

my @missing_files = grep { $_ ne 'Changes' } manicheck; # dev-mode doesn't have
my @missing_files = do {
local $SIG{__WARN__} = sub { }; # suppress "No such file:" messages
grep { $_ ne 'Changes' } manicheck; # dev-mode doesn't have
};

is_deeply \@missing_files, [], 'missing files from MANIFEST'
or map diag("$_\n"), @missing_files;

0 comments on commit b8c25c5

Please sign in to comment.