File: test-all-my-deps.t

package info (click to toggle)
libdatetime-perl 2%3A1.50-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,504 kB
  • sloc: perl: 2,964; makefile: 3
file content (28 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (5)
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
use strict;
use warnings;

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

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

use Test::DependentModules qw( test_all_dependents );

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

my $exclude = $ENV{DATETIME_TEST_DEPS} eq 'all'
    ? qr/(?:^App-)
                 |
                 ^(?:
                   Archive-RPM
                   |
                   Video-Xine
                  )$
                 /x
    : qr/^(?!DateTime-)/;

test_all_dependents( 'DateTime', { exclude => $exclude } );