BEGIN { # Magic Perl CORE pragma chdir 't' if -d 't'; unshift @INC,'../lib'; } use Test::More tests => ( 3 * 3 ) + 11; use strict; use warnings; use ExtUtils::MakeMaker; use Devel::Required pod => 'Foo.pm', text => 'README'; my @modules= qw( Foo Bar Baz ); foreach (@modules) { ok( open( OUT, ">$_.pm" ), "Failed to open $_.pm: $!" ); print OUT <README" ), "Failed to open README for writing: $!" ); print OUT < "Foo", VERSION_FROM => 'Foo.pm', PREREQ_PM => { 'Bar' => '1.0', 'Baz' => 0}, ); ok( -e 'Makefile', "Check if Makefile exists" ); ok( open( IN, "README" ), "Failed to open README for reading: $!" ); is( do { local $/; }, < }, <