diff options
Diffstat (limited to 'cpan/Module-Build/t/00-compile.t')
-rw-r--r-- | cpan/Module-Build/t/00-compile.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpan/Module-Build/t/00-compile.t b/cpan/Module-Build/t/00-compile.t new file mode 100644 index 0000000000..21bae84869 --- /dev/null +++ b/cpan/Module-Build/t/00-compile.t @@ -0,0 +1,17 @@ +use strict; +use warnings; +use lib 't/lib'; +use MBTest; +use File::Find qw/find/; + +my @files; +find( sub { -f && /\.pm$/ && push @files, $File::Find::name }, 'lib' ); + +plan tests => scalar @files; + +for my $f ( sort @files ) { + my $ec; + my $output = stdout_stderr_of( sub { $ec = system( $^X, '-c', $f ) } ); + ok( ! $ec, "compiling $f" ) or diag $output; +} + |