File: manifest.t

package info (click to toggle)
libcrypt-smime-perl 0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 248 kB
  • sloc: perl: 604; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!perl
use strict;
use warnings;
use ExtUtils::Manifest qw(fullcheck);
use Test::More tests => 2;

my ($missing, $extra) = do {
    local $ExtUtils::Manifest::Quiet = 1;
    fullcheck();
};

# Check for missing files in every case.
ok !scalar @$missing, 'No missing files that are in MANIFEST'
  or do {
      diag "No such file: $_" foreach @$missing;
  };

# Check for additional files - but not on Windows.
# See https://rt.cpan.org/Public/Bug/Display.html?id=124130
subtest 'extra files' => sub {
    if ($^O eq 'MSWin32') {
        plan skip_all => 'Not supported on Windows';
    }
    else {
        plan tests => 1;
    }

    ok !scalar @$extra, 'No extra files that aren\'t in MANIFEST'
      or do {
          diag "Not in MANIFEST: $_" foreach @$extra;
      };
};