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 BEGIN { unshift @INC, 't/lib'; } chdir 't'; use strict; use Test::More; if ($^O =~ /os2/i) { plan( tests => 32 ); } else { plan( skip_all => "This is not OS/2" ); } # for dlsyms, overridden in tests BEGIN { package ExtUtils::MM_OS2; use subs 'system', 'unlink'; } # for maybe_command use File::Spec; use_ok( 'ExtUtils::MM_OS2' ); ok( grep( 'ExtUtils::MM_OS2', @MM::ISA), 'ExtUtils::MM_OS2 should be parent of MM' ); # dlsyms my $mm = bless({ SKIPHASH => { dynamic => 1 }, NAME => 'foo:bar::', }, 'ExtUtils::MM_OS2'); is( $mm->dlsyms(), '', 'dlsyms() should return nothing with dynamic flag set' ); $mm->{BASEEXT} = 'baseext'; delete $mm->{SKIPHASH}; my $res = $mm->dlsyms(); like( $res, qr/baseext\.def: Makefile/, '... without flag, should return make targets' ); like( $res, qr/"DL_FUNCS" => \{ \}/, '... should provide empty hash refs where necessary' ); like( $res, qr/"DL_VARS" => \[]/, '... and empty array refs too' ); $mm->{FUNCLIST} = 'funclist'; $res = $mm->dlsyms( IMPORTS => 'imports' ); like( $res, qr/"FUNCLIST" => .+funclist/, '... should pick up values from object' ); like( $res, qr/"IMPORTS" => .+imports/, '... and allow parameter options too' ); my $can_write; { local *OUT; $can_write = open(OUT, '>tmp_imp'); } SKIP: { skip("Cannot write test files: $!", 7) unless $can_write; $mm->{IMPORTS} = { foo => 'bar' }; local $@; eval { $mm->dlsyms() }; like( $@, qr/Can.t mkdir tmp_imp/, '... should die if directory cannot be made' ); unlink('tmp_imp') or skip("Cannot remove test file: $!", 9); eval { $mm->dlsyms() }; like( $@, qr/Malformed IMPORT/, 'should die from malformed import symbols'); $mm->{IMPORTS} = { foo => 'bar.baz' }; my @sysfail = ( 1, 0, 1 ); my ($sysargs, $unlinked); *ExtUtils::MM_OS2::system = sub { $sysargs = shift; return shift @sysfail; }; *ExtUtils::MM_OS2::unlink = sub { $unlinked++; }; eval { $mm->dlsyms() }; like( $sysargs, qr/^emximp/, '... should try to call system() though' ); like( $@, qr/Cannot make import library/, '... should die if emximp syscall fails' ); # sysfail is 0 now, call emximp call should succeed eval { $mm->dlsyms() }; is( $unlinked, 1, '... should attempt to unlink temp files' ); like( $@, qr/Cannot extract import/, '... should die if other syscall fails' ); # make both syscalls succeed @sysfail = (0, 0); local $@; eval { $mm->dlsyms() }; is( $@, '', '... should not die if both syscalls succeed' ); } # static_lib { my $called = 0; # avoid "used only once" local *ExtUtils::MM_Unix::static_lib; *ExtUtils::MM_Unix::static_lib = sub { $called++; return "\n\ncalled static_lib\n\nline2\nline3\n\nline4"; }; my $args = bless({ IMPORTS => {}, }, 'MM'); # without IMPORTS as a populated hash, there will be no extra data my $ret = ExtUtils::MM_OS2::static_lib( $args ); is( $called, 1, 'static_lib() should call parent method' ); like( $ret, qr/^called static_lib/m, '... should return parent data unless IMPORTS exists' ); $args->{IMPORTS} = { foo => 1}; $ret = ExtUtils::MM_OS2::static_lib( $args ); is( $called, 2, '... should call parent method if extra imports passed' ); like( $ret, qr/^called static_lib\n\t\$\(AR\) \$\(AR_STATIC_ARGS\)/m, '... should append make tags to first line from parent method' ); like( $ret, qr/\$@\n\n\nline2\nline3\n\nline4/m, '... should include remaining data from parent method' ); } # replace_manpage_separator my $sep = '//a///b//c/de'; is( ExtUtils::MM_OS2->replace_manpage_separator($sep), '.a.b.c.de', 'replace_manpage_separator() should turn multiple slashes into periods' ); # maybe_command { local *DIR; my ($dir, $noext, $exe, $cmd); my $found = 0; my ($curdir, $updir) = (File::Spec->curdir, File::Spec->updir); # we need: # 1) a directory # 2) an executable file with no extension # 3) an executable file with the .exe extension # 4) an executable file with the .cmd extension # we assume there will be one somewhere in the path # in addition, we need them to be unique enough they do not trip # an earlier file test in maybe_command(). Portability. foreach my $path (split(/:/, $ENV{PATH})) { opendir(DIR, $path) or next; while (defined(my $file = readdir(DIR))) { next if $file eq $curdir or $file eq $updir; $file = File::Spec->catfile($path, $file); unless (defined $dir) { if (-d $file) { next if ( -x $file . '.exe' or -x $file . '.cmd' ); $dir = $file; $found++; } } if (-x $file) { my $ext; if ($file =~ s/\.(exe|cmd)\z//) { $ext = $1; # skip executable files with names too similar next if -x $file; $file .= '.' . $ext; } else { unless (defined $noext) { $noext = $file; $found++; } next; } unless (defined $exe) { if ($ext eq 'exe') { $exe = $file; $found++; next; } } unless (defined $cmd) { if ($ext eq 'cmd') { $cmd = $file; $found++; next; } } } last if $found == 4; } last if $found == 4; } SKIP: { skip('No appropriate directory found', 1) unless defined $dir; is( ExtUtils::MM_OS2->maybe_command( $dir ), undef, 'maybe_command() should ignore directories' ); } SKIP: { skip('No non-exension command found', 1) unless defined $noext; is( ExtUtils::MM_OS2->maybe_command( $noext ), $noext, 'maybe_command() should find executable lacking file extension' ); } SKIP: { skip('No .exe command found', 1) unless defined $exe; (my $noexe = $exe) =~ s/\.exe\z//; is( ExtUtils::MM_OS2->maybe_command( $noexe ), $exe, 'maybe_command() should find .exe file lacking extension' ); } SKIP: { skip('No .cmd command found', 1) unless defined $cmd; (my $nocmd = $cmd) =~ s/\.cmd\z//; is( ExtUtils::MM_OS2->maybe_command( $nocmd ), $cmd, 'maybe_command() should find .cmd file lacking extension' ); } } # file_name_is_absolute ok( ExtUtils::MM_OS2->file_name_is_absolute( 's:/' ), 'file_name_is_absolute() should be true for paths with volume and slash' ); ok( ExtUtils::MM_OS2->file_name_is_absolute( '\foo' ), '... and for paths with leading slash but no volume' ); ok( ! ExtUtils::MM_OS2->file_name_is_absolute( 'arduk' ), '... but not for paths with no leading slash or volume' ); $mm->init_linker; # PERL_ARCHIVE is( $mm->{PERL_ARCHIVE}, '$(PERL_INC)/libperl$(LIB_EXT)', 'PERL_ARCHIVE' ); # PERL_ARCHIVE_AFTER { my $aout = 0; local *OS2::is_aout; *OS2::is_aout = \$aout; $mm->init_linker; isnt( $mm->{PERL_ARCHIVE_AFTER}, '', 'PERL_ARCHIVE_AFTER should be empty without $is_aout set' ); $aout = 1; is( $mm->{PERL_ARCHIVE_AFTER}, '$(PERL_INC)/libperl_override$(LIB_EXT)', '... and has libperl_override if it is set' ); } # EXPORT_LIST is( $mm->{EXPORT_LIST}, '$(BASEEXT).def', 'EXPORT_LIST should add .def to BASEEXT member' ); END { use File::Path; rmtree('tmp_imp'); unlink 'tmpimp.imp'; }