summaryrefslogtreecommitdiffstats
path: root/t/00-load_all.t
blob: 5dd307ef9ea77053e54a8fa3fbff3627774acbc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use Test::Most;

use Path::Class;
use Module::Pluggable::Object;

# libs
my @needsX;
my $finder = Module::Pluggable::Object->new(
    search_path => [ 'Tails' ],
);
foreach my $class (grep !/\.ToDo/,
                   sort do { local @INC = ('lib'); $finder->plugins }) {
  if (grep { $_ eq $class } @needsX) {
      next unless defined($ENV{DISPLAY}) && length($ENV{DISPLAY});
  }
  use_ok($class);
}

done_testing();