cvs commit: perlfaq/t pod.t

[email protected] (brian d foy) 5 Oct 2004 22:13:06 -0000
Newsgroups perl.cvs.perlfaq
Message-ID <[email protected]>
cvsuser     04/10/05 15:13:05

  Modified:    .        Makefile
  Added:       t        pod.t
  Log:
  * added POD tests
  
  Revision  Changes    Path
  1.2       +5 -1      perlfaq/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /cvs/public/perlfaq/Makefile,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -w -r1.1 -r1.2
  --- Makefile	8 Apr 2002 23:01:00 -0000	1.1
  +++ Makefile	5 Oct 2004 22:13:05 -0000	1.2
  @@ -1,4 +1,4 @@
  -# $Id: Makefile,v 1.1 2002/04/08 23:01:00 comdog Exp $
  +# $Id: Makefile,v 1.2 2004/10/05 22:13:05 comdog Exp $
   PERL=perl
   
   CHECK_URLS=bin/check_urls.pl
  @@ -13,6 +13,7 @@
   	@ echo
   	@ echo "    checkurls   -- extract and validate URLs in the perlfaq POD"
   	@ echo "    perlfaq.pod -- create a new perlfaq.pod from the perlfaq POD"
  +	@ echo "    test        -- run each .pod file through Test::Pod"
   	@ echo
   
   echo:
  @@ -24,3 +25,6 @@
   checkurls: 
   	${PERL} ${CHECK_URLS} $(FILES)
   	@ touch $@
  +	
  +test:
  +	${PERL} t/pod.t
  
  
  
  1.1                  perlfaq/t/pod.t
  
  Index: pod.t
  ===================================================================
  #!/usr/bin/perl
  # $Id: pod.t,v 1.1 2004/10/05 22:13:05 comdog Exp $
  
  use strict;
  use Test::More;
  eval "use Test::Pod 1.00";
  plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
  my @poddirs = qw( blib script );
  all_pod_files_ok( glob( "*.pod" ) );