summaryrefslogtreecommitdiff
path: root/t/002_all_pm.t
diff options
context:
space:
mode:
authorKarel Miko <miko@dcit.cz>2013-04-12 00:28:30 +0200
committerKarel Miko <miko@dcit.cz>2013-04-12 00:28:30 +0200
commitdd9a707d5f8fbebd585d2bbaa2fc93e703790df0 (patch)
treec6e700306da6c328f2409c521e2083274c7b20de /t/002_all_pm.t
initial
Diffstat (limited to 't/002_all_pm.t')
-rw-r--r--t/002_all_pm.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/002_all_pm.t b/t/002_all_pm.t
new file mode 100644
index 00000000..03a4688b
--- /dev/null
+++ b/t/002_all_pm.t
@@ -0,0 +1,17 @@
+use strict;
+use warnings;
+
+use Test::More tests => 1;
+use File::Find qw(find);
+
+my @files;
+find({ wanted=>sub { push @files, $_ if /\.pm$/ }, no_chdir=>1 }, 'lib');
+
+for my $m (sort @files) {
+ $m =~ s|[\\/]|::|g;
+ $m =~ s|^lib::||;
+ $m =~ s|\.pm$||;
+ eval "use $m; 1;" or die "ERROR: 'use $m' failed";
+}
+
+ok 1, 'all done';