summaryrefslogtreecommitdiffstats
path: root/t/01compile.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-07 16:25:01 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-07 16:25:01 +0000
commit5b8587256ee14f40acf7d0cf026ffebc2f53be15 (patch)
tree654923b8418dc64a7cd7b51f598f800bb5b2b922 /t/01compile.t
parent65f7f175176b2aa78799976116786f0dbe6a11c3 (diff)
downloadurpmi-5b8587256ee14f40acf7d0cf026ffebc2f53be15.tar
urpmi-5b8587256ee14f40acf7d0cf026ffebc2f53be15.tar.gz
urpmi-5b8587256ee14f40acf7d0cf026ffebc2f53be15.tar.bz2
urpmi-5b8587256ee14f40acf7d0cf026ffebc2f53be15.tar.xz
urpmi-5b8587256ee14f40acf7d0cf026ffebc2f53be15.zip
Add test to ensure everything compiles. Use strict in tests.
Diffstat (limited to 't/01compile.t')
-rw-r--r--t/01compile.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/01compile.t b/t/01compile.t
new file mode 100644
index 00000000..366848aa
--- /dev/null
+++ b/t/01compile.t
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+
+use strict;
+use Test::More tests => 10;
+
+for my $module (glob("urpm/*.pm")) {
+ $module =~ s,/,::,g;
+ $module =~ s,\.pm$,,;
+ use_ok $module;
+}