summaryrefslogtreecommitdiff
path: root/t/000-compile-modules.t
blob: 5857dd61d07d5bc0f227766ee7ca340af49b6e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This test does a basic `use` check on all the code.
use Test::More;

use File::Find;

sub test {
    s{^lib/(.*)\.pm$}{$1} or return;
    s{/}{::}g;
    use_ok $_;
}

$ENV{PERL_ZILD_TEST_000_COMPILE_MODULES} = 1;

find {
    wanted => \&test,
    no_chdir => 1,
}, 'lib';

done_testing;