File: test-all-my-deps.t

package info (click to toggle)
libdatetime-format-iso8601-perl 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 400 kB
  • sloc: perl: 1,092; sh: 23; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
use strict;
use warnings;

use Cwd qw( abs_path );
use Test::More;

BEGIN {
    plan skip_all =>
        'Must set DATETIME_FORMAT_ISO8601_TEST_DEPS to true in order to run these tests'
        unless $ENV{DATETIME_FORMAT_ISO8601_TEST_DEPS};
}

use Test::DependentModules qw( test_all_dependents );

local $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');

my %exclude = map { $_ => 1 } (

    # Tests hit live MetaCPAN and are very slow
    'App-RetroPAN',

    # undeclared dep on DBD-mysql
    'CPAN-Testers-Schema',

    # Fails tests out of the box
    'Marketplace-Rakuten',

    # Generated Makefile doesn't work
    'SReview',
);

test_all_dependents(
    'DateTime-Format-ISO8601',
    {
        filter => sub { !$exclude{ $_[0] } }
    },
);