1
0
mirror of synced 2026-01-23 18:47:02 +00:00
steve 063bff3d0e 2006-01-02 14:05:58 by steve
Updated headers slightly.
2006-01-02 14:05:58 +00:00

34 lines
708 B
Perl

#!/usr/bin/perl -w
#
# Test that the POD we include in our scripts is valid, via the external
# podcheck command.
#
# Steve
# --
# $Id: pod-check.t,v 1.3 2006-01-02 14:05:58 steve Exp $
#
use strict;
use Test::More qw( no_plan );
foreach my $file ( glob( "xen-*" ) )
{
ok( -e $file, "$file" );
ok( -x $file, " File is executable: $file" );
ok( ! -d $file, " File is not a directory: $file" );
if ( ( -x $file ) && ( ! -d $file ) )
{
#
# Execute the command giving STDERR to STDOUT where we
# can capture it.
#
my $cmd = "podchecker $file";
my $output = `$cmd 2>&1`;
chomp( $output );
is( $output, "$file pod syntax OK.", " File has correct POD syntax: $file" );
}
}