1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
# Check that ppport works
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use Test::More;
use File::Spec;
use lib 't/lib';
use MyTest;
eval "require Devel::PPPort";
plan skip_all => 'requires Devel::PPPort' if $@;
plan tests => 8;
SCOPE: {
ok( create_dist( 'Foo', { 'Makefile.PL' => <<"END_DSL" }), 'create_dist' );
use inc::Module::Install 0.81;
name 'Foo';
perl_version '5.005';
all_from 'lib/Foo.pm';
WriteAll;
END_DSL
ok( build_dist(), 'build_dist' );
my $file = file('ppport.h');
ok( !-f $file, 'Not found ppport.h');
ok( kill_dist(), 'kill_dist' );
}
SCOPE: {
ok( create_dist( 'Foo', { 'Makefile.PL' => <<"END_DSL" }), 'create_dist' );
use inc::Module::Install 0.81;
name 'Foo';
perl_version '5.005';
all_from 'lib/Foo.pm';
ppport;
WriteAll;
END_DSL
ok( build_dist(), 'build_dist' );
my $file = file('ppport.h');
ok( -f $file, 'Found ppport.h');
ok( kill_dist(), 'kill_dist' );
}
|