1
0
mirror of synced 2026-05-02 22:42:51 +00:00

2005-12-21 05:09:32 by steve

Simple test to make sure we have the correct POD syntax in our files.
This commit is contained in:
steve
2005-12-21 05:09:32 +00:00
parent 0a48c6dbd8
commit d15159b244

30
tests/pod-check.t Normal file
View File

@@ -0,0 +1,30 @@
#!/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" );
}
}