summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mageia.org>2012-12-05 12:10:04 +0000
committerGuillaume Rousse <guillomovitch@mageia.org>2012-12-05 12:10:04 +0000
commitbfe45b39b5a6ff927fd25199ec6be3edba039fa7 (patch)
tree890e55ad1fb97ed9129b30f8a79bcb095ea38e9c /t
parent2f38ca7d0d4a2119c1a23a4cb244d128947ac870 (diff)
downloadurpmi-bfe45b39b5a6ff927fd25199ec6be3edba039fa7.tar
urpmi-bfe45b39b5a6ff927fd25199ec6be3edba039fa7.tar.gz
urpmi-bfe45b39b5a6ff927fd25199ec6be3edba039fa7.tar.bz2
urpmi-bfe45b39b5a6ff927fd25199ec6be3edba039fa7.tar.xz
urpmi-bfe45b39b5a6ff927fd25199ec6be3edba039fa7.zip
use Test::Compile for more automation
Diffstat (limited to 't')
-rw-r--r--t/01compile.t16
1 files changed, 10 insertions, 6 deletions
diff --git a/t/01compile.t b/t/01compile.t
index 2b81d0c3..727112a3 100644
--- a/t/01compile.t
+++ b/t/01compile.t
@@ -2,10 +2,14 @@
use strict;
use warnings;
-use Test::More tests => 26;
-for my $module (glob("urpm/*.pm")) {
- $module =~ s,/,::,g;
- $module =~ s,\.pm$,,;
- use_ok $module;
-}
+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'));