diff options
Diffstat (limited to 't/01compile.t')
-rw-r--r-- | t/01compile.t | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/t/01compile.t b/t/01compile.t index 727112a3..2b81d0c3 100644 --- a/t/01compile.t +++ b/t/01compile.t @@ -2,14 +2,10 @@ use strict; use warnings; +use Test::More tests => 26; -use English qw(-no_match_vars); -use Test::More; - -eval { - require Test::Compile; - Test::Compile->import(); -}; -plan(skip_all => 'Test::Compile required') if $EVAL_ERROR; - -all_pm_files_ok(all_pm_files('urpm')); +for my $module (glob("urpm/*.pm")) { + $module =~ s,/,::,g; + $module =~ s,\.pm$,,; + use_ok $module; +} |