Module-Build-Pluggable

 view release on metacpan or  search on metacpan

lib/Test/Module/Build/Pluggable.pm  view on Meta::CPAN

}

sub run_build_script {
    my ($self, @args) = @_;

    my $pid = fork();
    die "fork failed: $!" unless defined $pid;
    if ($pid) { # parent
        waitpid $pid, 0;
    } else { # child
        local @ARGV = (@args);
        do 'Build';
        ::ok(!$@) or ::diag $@;
        exit 0;
    }
}

sub run_build_pl {
    my ($self, @args) = @_;

    my $pid = fork();
    die "fork failed: $!" unless defined $pid;
    if ($pid) { # parent
        waitpid $pid, 0;
    } else { # child
        local @ARGV = @args;
        do 'Build.PL';
        ::ok(-f 'Build', 'Created Build file') or ::diag $@;
        exit 0;
    }
}

1;
__END__

=head1 NAME

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.206 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )