aboutsummaryrefslogtreecommitdiff
path: root/tests/docs/pod-t
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-09 23:57:10 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-09 23:57:10 -0800
commit5d7f614e88bac459a693f1dcc91aad36ed3d00dd (patch)
tree0e7d6319bcfb4bc1c9d5c57dd513780521a65625 /tests/docs/pod-t
parentafcc4aba6708d37379ae70bab5ddc38592185e8b (diff)
Reorganize main POD tests and add a spelling check
Add a POD spelling test to the non-Perl-module part of the code and move the documentation tests into a separate directory. Merge the POD syntax tests between client and server into one test. Reformat all of the POD documentation to use 74 columns. Fix a few revealed spelling errors or weird wordings.
Diffstat (limited to 'tests/docs/pod-t')
-rwxr-xr-xtests/docs/pod-t21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/docs/pod-t b/tests/docs/pod-t
new file mode 100755
index 0000000..9b6c5d1
--- /dev/null
+++ b/tests/docs/pod-t
@@ -0,0 +1,21 @@
+#!/usr/bin/perl -w
+#
+# Test POD formatting for documentation.
+#
+# Written by Russ Allbery <rra@stanford.edu>
+# Copyright 2008, 2010 Board of Trustees, Leland Stanford Jr. University
+#
+# See LICENSE for licensing terms.
+
+use strict;
+use Test::More;
+eval 'use Test::Pod 1.00';
+plan skip_all => 'Test::Pod 1.00 required for testing POD' if $@;
+
+my @files = qw(client/wallet.pod server/keytab-backend server/wallet-admin
+ server/wallet-backend);
+my $total = scalar (@files);
+plan tests => $total;
+for my $file (@files) {
+ pod_file_ok ("$ENV{SOURCE}/../$file", $file);
+}