| 1 | use strict; |
| 2 | use warnings; |
| 3 | |
| 4 | use Cwd qw( abs_path ); |
| 5 | use Test::More; |
| 6 | |
| 7 | BEGIN { |
| 8 | plan skip_all => |
| 9 | 'Must set LIST_ALLUTILS_TEST_DEPS to true in order to run these tests' |
| 10 | unless $ENV{LIST_ALLUTILS_TEST_DEPS}; |
| 11 | } |
| 12 | |
| 13 | use Test::DependentModules qw( test_all_dependents ); |
| 14 | |
| 15 | local $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.'); |
| 16 | |
| 17 | my $exclude = qr/ |
| 18 | ^ |
| 19 | (?: |
| 20 | App-Magpie |
| 21 | )$ |
| 22 | /x; |
| 23 | |
| 24 | my %exclude = ( |
| 25 | 'App-Magpie' => 1, # requires URPM which does not install on Ubuntu |
| 26 | 'App-Map-Metro' => 1, # dependency failures |
| 27 | 'DBD-TreeData' => 1, # fails tests |
| 28 | 'Devel-IPerl' => 1, # depends on ipython |
| 29 | 'Dist-Zilla-PluginBundle-Prereqs' => 1, # fails tests |
| 30 | 'MarpaX-Grammar-GraphViz2' => 1, # unsatisfiable prereqs |
| 31 | 'Gtk3-Ex-PdfViewer' => 1, # requires various gtk libs |
| 32 | 'Net-DNS-SPF-Expander' => 1, # fails tests |
| 33 | 'Pantry' => 1, # fails tests |
| 34 | 'Pcore' => 1, # Build.PL fails |
| 35 | 'Silki' => 1, # fails tests |
| 36 | 'Statistics-NiceR' => 1, # requires an R executable |
| 37 | 'Transform-Alert' => 1, # fails tests |
| 38 | ); |
| 39 | |
| 40 | test_all_dependents( |
| 41 | 'List-AllUtils', { |
| 42 | filter => sub { !$exclude{ $_[0] } } |
| 43 | } |
| 44 | ); |