Просмотр исходного кода

000_pod.t: Add POD syntax checking

Standard Test::Pod testing.
Frank Lichtenheld лет назад: 19
Родитель
Сommit
3aea890c65
2 измененных файлов с 12 добавлено и 0 удалено
  1. 1 0
      scripts/Makefile.am
  2. 11 0
      scripts/t/000_pod.t

+ 1 - 0
scripts/Makefile.am

@@ -50,6 +50,7 @@ EXTRA_DIST = \
 	install-info.pl \
 	update-alternatives.pl \
 	changelog/debian.pl \
+	t/000_pod.t \
 	t/100_Dpkg_Version.t \
 	t/200_Dpkg_Shlibs.t \
 	t/200_Dpkg_Shlibs/symbols.fake-1 \

+ 11 - 0
scripts/t/000_pod.t

@@ -0,0 +1,11 @@
+# -*- mode: cperl;-*-
+
+use Test::More;
+
+use strict;
+use warnings;
+
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+my @poddirs = ( $ENV{srcdir} || '.' );
+all_pod_files_ok( all_pod_files( @poddirs ) );