File: 12_manifest.t

package info (click to toggle)
libtest-compile-perl 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 308 kB
  • ctags: 228
  • sloc: perl: 3,034; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 664 bytes parent folder | download
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
#!perl -w
use strict;
use warnings;
use Test::More;
eval 'use Test::DistManifest; 1' or
    plan skip_all => 'Test::DistManifest required';
plan skip_all => 'skip author tests during AUTOMATED_TESTING' if
    $ENV{AUTOMATED_TESTING};

# When making the dist, MANIFEST.SKIP isn't copied, so check in the parent
# dir, which is the actual dist root, as well.

my $manifest = 'MANIFEST';
unless (-e $manifest) {
    $manifest = "../$manifest";
    warn "# using $manifest\n";
}

my $manifest_skip = 'MANIFEST.SKIP';
unless (-e $manifest_skip) {
    $manifest_skip = "../$manifest_skip";
    warn "# using $manifest_skip\n";
}

manifest_ok($manifest, $manifest_skip);