Permalink
Browse files

pod test

  • Loading branch information...
1 parent 3881f59 commit cd9acb7fb2c5f2382c1d02f1470b4c606479bc0b @stash committed Dec 20, 2010
Showing with 33 additions and 0 deletions.
  1. +1 −0 MANIFEST
  2. +32 −0 t/99-pod.t
View
@@ -48,6 +48,7 @@ t/61-plack-suite.t
t/62-plack-runner.t
t/63-plack-apps.t
t/99-pod-coverage.t
+t/99-pod.t
t/Utils.pm
typemap
xt/50-psgi-simple-stress.t
View
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+
+# Test that the syntax of our POD documentation is valid
+use strict;
+BEGIN {
+ $| = 1;
+ $^W = 1;
+}
+
+my @MODULES = (
+ 'Pod::Simple 3.07',
+ 'Test::Pod 1.26',
+);
+
+# Don't run tests during end-user installs
+use Test::More;
+plan( skip_all => 'Author tests not required for installation' )
+ unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} );
+
+# Load the testing modules
+foreach my $MODULE ( @MODULES ) {
+ eval "use $MODULE";
+ if ( $@ ) {
+ $ENV{RELEASE_TESTING}
+ ? die( "Failed to load required release-testing module $MODULE" )
+ : plan( skip_all => "$MODULE not available for testing" );
+ }
+}
+
+all_pod_files_ok();
+
+1;

0 comments on commit cd9acb7

Please sign in to comment.