From 5351e30bb5adbe0304292f6cec7b094bef7a1bf0 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 7 Feb 2008 23:57:21 +0000 Subject: Added POD testing for the client and server documentation. --- tests/TESTS | 2 ++ tests/client/pod-t.in | 23 +++++++++++++++++++++++ tests/server/pod-t.in | 23 +++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 tests/client/pod-t.in create mode 100644 tests/server/pod-t.in (limited to 'tests') diff --git a/tests/TESTS b/tests/TESTS index a7dbb09..e19f290 100644 --- a/tests/TESTS +++ b/tests/TESTS @@ -1,9 +1,11 @@ client/basic +client/pod portable/asprintf portable/snprintf server/admin server/backend server/keytab +server/pod util/concat util/messages util/xmalloc diff --git a/tests/client/pod-t.in b/tests/client/pod-t.in new file mode 100644 index 0000000..7dd13f4 --- /dev/null +++ b/tests/client/pod-t.in @@ -0,0 +1,23 @@ +#!/usr/bin/perl +# $Id$ +# +# tests/server/pod-t -- Test POD formatting for client documentation. +# +# Written by Russ Allbery +# Copyright 2008 Board of Trustees, Leland Stanford Jr. University +# +# See LICENSE for licensing terms. + +use Test::More; + +my @files = qw(wallet.pod); +my $total = scalar (@files); +plan tests => $total; + +eval 'use Test::Pod 1.00'; +SKIP: { + skip $total, 'Test::Pod 1.00 required for testing POD' if $@; + for my $file (@files) { + pod_file_ok ("@abs_top_srcdir@/client/$file", "client/$file"); + } +} diff --git a/tests/server/pod-t.in b/tests/server/pod-t.in new file mode 100644 index 0000000..fd939a5 --- /dev/null +++ b/tests/server/pod-t.in @@ -0,0 +1,23 @@ +#!/usr/bin/perl +# $Id$ +# +# tests/server/pod-t -- Test POD formatting for client documentation. +# +# Written by Russ Allbery +# Copyright 2008 Board of Trustees, Leland Stanford Jr. University +# +# See LICENSE for licensing terms. + +use Test::More; + +my @files = qw(keytab-backend wallet-admin wallet-backend); +my $total = scalar (@files); +plan tests => $total; + +eval 'use Test::Pod 1.00'; +SKIP: { + skip $total, 'Test::Pod 1.00 required for testing POD' if $@; + for my $file (@files) { + pod_file_ok ("@abs_top_srcdir@/server/$file", "server/$file"); + } +} -- cgit v1.2.3