X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FPod%2Ft%2Fpod-spelling.t;h=41c902782e953649059421c385020877e136f992;hb=9f2f055aa1e8c86d97b5ea42473ab1747f518f3a;hp=c13fb9d587cb7bde9f8004db514ef1d39dc81ff4;hpb=3327bb648bca3705820d35dd728f98436ea9f8aa;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Pod/t/pod-spelling.t b/lib/Pod/t/pod-spelling.t index c13fb9d..41c9027 100644 --- a/lib/Pod/t/pod-spelling.t +++ b/lib/Pod/t/pod-spelling.t @@ -1,14 +1,22 @@ #!/usr/bin/perl # # t/pod-spelling.t -- Test POD spelling. +# +# Copyright 2008 Russ Allbery +# +# This program is free software; you may redistribute it and/or modify it +# under the same terms as Perl itself. # Called to skip all tests with a reason. sub skip_all { - print "1..1\n"; - print "ok 1 # skip - @_\n"; + print "1..0 # Skipped: @_\n"; exit; } +# Skip all spelling tests unless flagged to run maintainer tests. +skip_all "Spelling tests only run for maintainer" + unless $ENV{RRA_MAINTAINER_TESTS}; + # Make sure we have prerequisites. hunspell is currently not supported due to # lack of support for contractions. eval 'use Test::Pod 1.00';