summaryrefslogtreecommitdiff
path: root/t/000-compile-modules.t
diff options
context:
space:
mode:
Diffstat (limited to 't/000-compile-modules.t')
-rw-r--r--t/000-compile-modules.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/000-compile-modules.t b/t/000-compile-modules.t
new file mode 100644
index 0000000..5857dd6
--- /dev/null
+++ b/t/000-compile-modules.t
@@ -0,0 +1,19 @@
+# This test does a basic `use` check on all the code.
+use Test::More;
+
+use File::Find;
+
+sub test {
+ s{^lib/(.*)\.pm$}{$1} or return;
+ s{/}{::}g;
+ use_ok $_;
+}
+
+$ENV{PERL_ZILD_TEST_000_COMPILE_MODULES} = 1;
+
+find {
+ wanted => \&test,
+ no_chdir => 1,
+}, 'lib';
+
+done_testing;