31 lines
658 B
Perl
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" );
|
|
}
|
|
}
|
|
|