summaryrefslogtreecommitdiffstats
path: root/t/01compile.t
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mageia.org>2012-12-10 18:19:07 +0000
committerGuillaume Rousse <guillomovitch@mageia.org>2012-12-10 18:19:07 +0000
commite4350784fcb06b472c903633d0f3a8209457006a (patch)
tree85068e982cbbe224270760807f90959261ef88d9 /t/01compile.t
parent04bd5cebd2e0dfb0b967ad803a9c9545c6038a2c (diff)
downloadurpmi-e4350784fcb06b472c903633d0f3a8209457006a.tar
urpmi-e4350784fcb06b472c903633d0f3a8209457006a.tar.gz
urpmi-e4350784fcb06b472c903633d0f3a8209457006a.tar.bz2
urpmi-e4350784fcb06b472c903633d0f3a8209457006a.tar.xz
urpmi-e4350784fcb06b472c903633d0f3a8209457006a.zip
revert my previous commits, this was a bad anyway
Diffstat (limited to 't/01compile.t')
-rw-r--r--t/01compile.t16
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;
+}