diff options
author | Ricardo Signes <rjbs@cpan.org> | 2014-05-27 08:18:37 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2014-05-27 08:39:35 -0400 |
commit | 2ea3abd479aa44362dc629f2b947e82932c2b5ef (patch) | |
tree | 1209e99dbc45b0ec56edbbeaa1cc93788c7981ef /cpan/Module-Build/t/actions/installdeps.t | |
parent | e9fa5a806a772a77473708c3c01c20c725a51822 (diff) | |
download | perl-2ea3abd479aa44362dc629f2b947e82932c2b5ef.tar.gz |
remove Module-Build from core perl distribution
Diffstat (limited to 'cpan/Module-Build/t/actions/installdeps.t')
-rw-r--r-- | cpan/Module-Build/t/actions/installdeps.t | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/cpan/Module-Build/t/actions/installdeps.t b/cpan/Module-Build/t/actions/installdeps.t deleted file mode 100644 index ec90080655..0000000000 --- a/cpan/Module-Build/t/actions/installdeps.t +++ /dev/null @@ -1,45 +0,0 @@ -use strict; -use lib 't/lib'; -use MBTest; -use DistGen; - -plan tests => 6; - -# Ensure any Module::Build modules are loaded from correct directory -blib_load('Module::Build'); - -# create dist object in a temp directory -# enter the directory and generate the skeleton files -my $dist = DistGen->new->chdir_in; - -$dist->change_build_pl( - module_name => $dist->name, - requires => { - 'File::Spec' => 9999, - }, - build_requires => { - 'Getopt::Long' => 9998, - }, - cpan_client => $^X . ' -le print($_)for($^X,@ARGV)', -)->regen; - -# get a Module::Build object and test with it -my $mb; -stdout_stderr_of( sub { $mb = $dist->new_from_context('verbose' => 1) } ); -isa_ok( $mb, "Module::Build" ); -like( $mb->cpan_client, qr/^\Q$^X\E/, "cpan_client is mocked with perl" ); - -my $retval; -my $out = stdout_of( sub { - $retval = $mb->dispatch('installdeps') -}); -ok( $retval, "ran mocked Build installdeps"); -like( $out, qr/File::Spec/, "saw File::Spec prereq" ); -like( $out, qr/Getopt::Long/, "saw Getopt::Long prereq" ); - -$out = stdout_stderr_of( sub { - $retval = $mb->dispatch('installdeps', cpan_client => 'ADLKASJDFLASDJ'); -}); -ok( !$retval, "Build installdeps with bad cpan_client fails" ); - -# vim:ts=2:sw=2:et:sta:sts=2 |