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 /
ExtUtils-MakeMaker /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
testdata
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
00compile.t
929
B
-r--r--r--
2014-12-27 11:48
01perl_bugs.t
539
B
-r--r--r--
2014-12-27 11:48
FIRST_MAKEFILE.t
808
B
-r--r--r--
2014-12-27 11:49
INST.t
4.72
KB
-r--r--r--
2014-12-27 11:48
INSTALL_BASE.t
2.01
KB
-r--r--r--
2014-12-27 11:49
INST_PREFIX.t
9.07
KB
-r--r--r--
2014-12-27 11:48
Liblist.t
670
B
-r--r--r--
2014-12-27 11:48
META_for_testing.json
1.39
KB
-r--r--r--
2014-12-27 11:48
META_for_testing.yml
839
B
-r--r--r--
2014-12-27 11:48
META_for_testing_tricky_version.yml
574
B
-r--r--r--
2014-12-27 11:48
MM_Any.t
747
B
-r--r--r--
2014-12-27 11:48
MM_BeOS.t
1.04
KB
-r--r--r--
2014-12-27 11:48
MM_Cygwin.t
3.2
KB
-r--r--r--
2014-12-27 11:48
MM_NW5.t
7.68
KB
-r--r--r--
2014-12-27 11:48
MM_OS2.t
6.79
KB
-r--r--r--
2014-12-27 11:48
MM_Unix.t
5.63
KB
-r--r--r--
2014-12-27 11:49
MM_VMS.t
1.62
KB
-r--r--r--
2014-12-27 11:48
MM_Win32.t
10.83
KB
-r--r--r--
2014-12-27 11:48
MakeMaker_Parameters.t
1.57
KB
-r--r--r--
2014-12-27 11:49
Mkbootstrap.t
3.91
KB
-r--r--r--
2014-12-27 11:48
PL_FILES.t
797
B
-r--r--r--
2014-12-27 11:49
VERSION_FROM.t
599
B
-r--r--r--
2014-12-27 11:48
WriteEmptyMakefile.t
655
B
-r--r--r--
2014-12-27 11:48
arch_check.t
1.92
KB
-r--r--r--
2014-12-27 11:48
backwards.t
354
B
-r--r--r--
2014-12-27 11:48
basic.t
14.61
KB
-r--r--r--
2014-12-27 11:49
build_man.t
1.65
KB
-r--r--r--
2014-12-27 11:48
cd.t
1.15
KB
-r--r--r--
2014-12-27 11:49
config.t
261
B
-r--r--r--
2014-12-27 11:48
dir_target.t
256
B
-r--r--r--
2014-12-27 11:48
echo.t
2.48
KB
-r--r--r--
2014-12-27 11:49
fix_libs.t
693
B
-r--r--r--
2014-12-27 11:48
fixin.t
2.39
KB
-r--r--r--
2014-12-27 11:48
hints.t
1.47
KB
-r--r--r--
2014-12-27 11:48
installed_file.t
933
B
-r--r--r--
2014-12-27 11:48
is_of_type.t
842
B
-r--r--r--
2014-12-27 11:48
make.t
271
B
-r--r--r--
2014-12-27 11:48
maketext_filter.t
905
B
-r--r--r--
2014-12-27 11:48
meta_convert.t
3.35
KB
-r--r--r--
2014-12-27 11:49
metafile_data.t
22.35
KB
-r--r--r--
2014-12-27 11:48
metafile_file.t
7.37
KB
-r--r--r--
2014-12-27 11:48
min_perl_version.t
6.03
KB
-r--r--r--
2014-12-27 11:49
miniperl.t
1.12
KB
-r--r--r--
2014-12-27 11:49
oneliner.t
2.07
KB
-r--r--r--
2014-12-27 11:49
parse_abstract.t
1.59
KB
-r--r--r--
2014-12-27 11:48
parse_version.t
4.78
KB
-r--r--r--
2014-12-27 11:49
pm.t
741
B
-r--r--r--
2014-12-27 11:48
pm_to_blib.t
1.51
KB
-r--r--r--
2014-12-27 11:49
pod2man.t
904
B
-r--r--r--
2014-12-27 11:48
postamble.t
1.61
KB
-r--r--r--
2014-12-27 11:49
prefixify.t
1.23
KB
-r--r--r--
2014-12-27 11:48
prereq.t
3.36
KB
-r--r--r--
2014-12-27 11:49
prereq_print.t
1.91
KB
-r--r--r--
2014-12-27 11:48
problems.t
972
B
-r--r--r--
2014-12-27 11:48
prompt.t
1.24
KB
-r--r--r--
2014-12-27 11:48
recurs.t
2.9
KB
-r--r--r--
2014-12-27 11:49
revision.t
411
B
-r--r--r--
2014-12-27 11:48
several_authors.t
3.55
KB
-r--r--r--
2014-12-27 11:49
split_command.t
1.44
KB
-r--r--r--
2014-12-27 11:48
test_boilerplate.t
389
B
-r--r--r--
2014-12-27 11:48
testlib.t
784
B
-r--r--r--
2014-12-27 11:48
writemakefile_args.t
7.01
KB
-r--r--r--
2014-12-27 11:49
xs.t
999
B
-r--r--r--
2014-12-27 11:49
Save
Rename
#!/usr/bin/perl -w # This is a test checking various aspects of the optional argument # MIN_PERL_VERSION to WriteMakefile. BEGIN { unshift @INC, 't/lib'; } use strict; use Config; use Test::More $ENV{PERL_CORE} && $Config{'usecrosscompile'} ? (skip_all => "no toolchain installed when cross-compiling") : (tests => 36); use TieOut; use MakeMaker::Test::Utils; use MakeMaker::Test::Setup::MPV; use File::Path; use ExtUtils::MakeMaker; # avoid environment variables interfering with our make runs delete @ENV{qw(LIB MAKEFLAGS)}; my $perl = which_perl(); my $make = make_run(); my $makefile = makefile_name(); chdir 't'; perl_lib(); ok( setup_recurs(), 'setup' ); END { ok( chdir(File::Spec->updir), 'leaving dir' ); ok( teardown_recurs(), 'teardown' ); } ok( chdir 'Min-PerlVers', 'entering dir Min-PerlVers' ) || diag("chdir failed: $!"); note "Argument verification"; { my $stdout = tie *STDOUT, 'TieOut'; ok( $stdout, 'capturing stdout' ); my $warnings = ''; local $SIG{__WARN__} = sub { $warnings .= join '', @_; }; eval { WriteMakefile( NAME => 'Min::PerlVers', MIN_PERL_VERSION => '5', ); }; is( $warnings, '', 'MIN_PERL_VERSION=5 does not trigger a warning' ); is( $@, '', ' nor a hard failure' ); $warnings = ''; eval { WriteMakefile( NAME => 'Min::PerlVers', MIN_PERL_VERSION => '5.4.4', ); }; is( $warnings, '', 'MIN_PERL_VERSION=X.Y.Z does not trigger a warning' ); is( $@, '', ' nor a hard failure' ); $warnings = ''; eval { WriteMakefile( NAME => 'Min::PerlVers', MIN_PERL_VERSION => 5.4.4, ); }; is( $warnings, '', 'MIN_PERL_VERSION=X.Y.Z does not trigger a warning' ); is( $@, '', ' nor a hard failure' ); $warnings = ''; eval { WriteMakefile( NAME => 'Min::PerlVers', MIN_PERL_VERSION => v5.4.4, ); }; is( $warnings, '', 'MIN_PERL_VERSION=X.Y.Z does not trigger a warning' ); is( $@, '', ' nor a hard failure' ); $warnings = ''; eval { WriteMakefile( NAME => 'Min::PerlVers', MIN_PERL_VERSION => '999999', ); }; ok( '' ne $warnings, 'MIN_PERL_VERSION=999999 triggers a warning' ); is( $warnings, "Warning: Perl version 999999 or higher required. We run $].\n", ' with expected message text' ); is( $@, '', ' and without a hard failure' ); $warnings = ''; eval { WriteMakefile( NAME => 'Min::PerlVers', MIN_PERL_VERSION => '999999', PREREQ_FATAL => 1, ); }; is( $warnings, '', 'MIN_PERL_VERSION=999999 and PREREQ_FATAL: no warning' ); is( $@, <<"END", ' correct exception' ); MakeMaker FATAL: perl version too low for this distribution. Required is 999999. We run $]. END $warnings = ''; eval { WriteMakefile( NAME => 'Min::PerlVers', MIN_PERL_VERSION => 'foobar', ); }; is( $@, <<'END', 'Invalid MIN_PERL_VERSION is fatal' ); Warning: MIN_PERL_VERSION is not in a recognized format. Recommended is a quoted numerical value like '5.005' or '5.008001'. END } note "PREREQ_PRINT output"; { my $prereq_out = run(qq{$perl Makefile.PL "PREREQ_PRINT=1"}); is( $?, 0, 'PREREQ_PRINT exiting normally' ); my $prereq_out_sane = $prereq_out =~ /^\s*\$PREREQ_PM\s*=/; ok( $prereq_out_sane, ' and talking like we expect' ) || diag($prereq_out); SKIP: { skip 'not going to evaluate rubbish', 3 if !$prereq_out_sane; package _Prereq::Print::WithMPV; ## no critic our($PREREQ_PM, $BUILD_REQUIRES, $MIN_PERL_VERSION, $ERR); $ERR = ''; eval { eval $prereq_out; ## no critic $ERR = $@; }; ::is( $@ . $ERR, '', 'prereqs evaluable' ); ::is_deeply( $PREREQ_PM, { strict => 0 }, ' and looking correct' ); ::is( $MIN_PERL_VERSION, '5.005', 'min version also correct' ); } } note "PRINT_PREREQ output"; { my $prereq_out = run(qq{$perl Makefile.PL "PRINT_PREREQ=1"}); is( $?, 0, 'PRINT_PREREQ exiting normally' ); ok( $prereq_out !~ /^warning/i, ' and not complaining loudly' ); like( $prereq_out, qr/^perl\(perl\) \s* >= 5\.005 \s+ perl\(strict\) \s* >= \s* 0 \s*$/x, 'dump has prereqs and perl version' ); } note "generated files verification"; { unlink $makefile; my @mpl_out = run(qq{$perl Makefile.PL}); END { unlink $makefile, makefile_backup() } cmp_ok( $?, '==', 0, 'Makefile.PL exiting normally' ) || diag(@mpl_out); ok( -e $makefile, 'Makefile present' ); } note "ppd output"; { my $ppd_file = 'Min-PerlVers.ppd'; my @make_out = run(qq{$make ppd}); END { unlink $ppd_file } cmp_ok( $?, '==', 0, 'Make ppd exiting normally' ) || diag(@make_out); my $ppd_html = slurp($ppd_file); ok( defined($ppd_html), ' .ppd file present' ); like( $ppd_html, qr{^\s*<PERLCORE VERSION="5,005,0,0" />}m, ' .ppd file content good' ); } note "META.yml output"; { my $distdir = 'Min-PerlVers-0.05'; $distdir =~ s{\.}{_}g if $Is_VMS; my $meta_yml = "$distdir/META.yml"; my $meta_json = "$distdir/META.json"; my @make_out = run(qq{$make metafile}); END { rmtree $distdir } for my $case ( ['META.yml', $meta_yml], ['META.json', $meta_json], ) { my ($label, $meta_name) = @$case; ok( my $obj = eval { CPAN::Meta->load_file($meta_name, {lazy_validation => 0}) }, "$label validates" ); is( $obj->prereqs->{runtime}{requires}{perl}, '5.005', "$label has runtime/requires perl 5.005" ); } }