File: dependent-modules.t

package info (click to toggle)
libwww-perl 6.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,008 kB
  • sloc: perl: 4,148; makefile: 10; sh: 6
file content (22 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (2)
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;

# Test::Needs will fail the dzil build if RELEASE_TESTING is enabled and this
# module is not installed, but we don't want to slow down every dzil build to
# test dependents.

use Test::More;

local $ENV{RELEASE_TESTING} = 0;
require Test::Needs;
Test::Needs->import({'Test::DependentModules' => 0.27});

my @modules = ('WWW::Mechanize');

SKIP: {
    skip '$ENV{TEST_DEPENDENTS} not set', scalar @modules
        unless $ENV{TEST_DEPENDENTS};
    Test::DependentModules::test_modules(@modules);
}

done_testing();