Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
Module-Build /
t /
actions /
Delete
Unzip
Name
Size
Permission
Date
Action
installdeps.t
1.18
KB
-r--r--r--
2014-12-27 11:49
manifest_skip.t
1.46
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
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