1
0
mirror of synced 2026-02-17 12:37:03 +00:00
Files
xen-tools.xen-tools/tests/pod-check.t
steve d15159b244 2005-12-21 05:09:32 by steve
Simple test to make sure we have the correct POD syntax in our files.
2005-12-21 05:09:32 +00:00

31 lines
658 B
Perl

#!/usr/bin/perl -w
#
# Test that all the Perl modules we require are available.
#
# This list is automatically generated by modules.sh
#
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" );
}
}