File: check-inc.t

package info (click to toggle)
libb-hooks-endofscope-perl 0.28-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 497; makefile: 13
file content (22 lines) | stat: -rw-r--r-- 423 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
use strict;
use warnings;

use Test::More 0.88;
use Test::Deep;
use Path::Tiny 0.062;

plan skip_all => 'this test requires a built dist' if not -d 'inc';

my @found_files;
path('inc')->visit(
    sub { push @found_files, $_->stringify if -f },
    { recurse => 1 },
);

cmp_deeply(
    \@found_files,
    [ 'inc/ExtUtils/HasCompiler.pm' ],
    'only ExtUtils::HasCompiler is bundled, and nothing else!',
);

done_testing;