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 BEGIN { unshift @INC, 't/lib'; } chdir 't'; use Test::More; BEGIN { if ($^O =~ /NetWare/i) { plan tests => 39; } else { plan skip_all => 'This is not NW5'; } } use Config; use File::Spec; use File::Basename; use ExtUtils::MM; require_ok( 'ExtUtils::MM_NW5' ); # Dummy MM object until we have a real MM init method. my $MM = bless { DIR => [], NOECHO => '@', XS => {}, MAKEFILE => 'Makefile', RM_RF => 'rm -rf', MV => 'mv', }, 'MM'; # replace_manpage_separator() => tr|/|.|s ? { my $man = 'a/path/to//something'; ( my $replaced = $man ) =~ tr|/|.|s; is( $MM->replace_manpage_separator( $man ), $replaced, 'replace_manpage_separator()' ); } # maybe_command() SKIP: { skip( '$ENV{COMSPEC} not set', 2 ) unless $ENV{COMSPEC} =~ m!((?:[a-z]:)?[^|<>]+)!i; my $comspec = $1; is( $MM->maybe_command( $comspec ), $comspec, 'COMSPEC is a maybe_command()' ); ( my $comspec2 = $comspec ) =~ s|\..{3}$||; like( $MM->maybe_command( $comspec2 ), qr/\Q$comspec/i, 'maybe_command() without extension' ); } my $had_pathext = exists $ENV{PATHEXT}; { local $ENV{PATHEXT} = '.exe'; ok( ! $MM->maybe_command( 'not_a_command.com' ), 'not a maybe_command()' ); } # Bug in Perl. local $ENV{FOO} won't delete the key afterward. delete $ENV{PATHEXT} unless $had_pathext; # file_name_is_absolute() [Does not support UNC-paths] { ok( $MM->file_name_is_absolute( 'SYS:/' ), 'file_name_is_absolute()' ); ok( ! $MM->file_name_is_absolute( 'some/path/' ), 'not file_name_is_absolute()' ); } # find_perl() # Should be able to find running perl... $^X is OK on NW5 { my $my_perl = $1 if $^X =~ /(.*)/; # are we in -T or -t? my( $perl, $path ) = fileparse( $my_perl ); like( $MM->find_perl( $], [ $perl ], [ $path ] ), qr/^\Q$my_perl\E$/i, 'find_perl() finds this perl' ); } # catdir() (calls MM_NW5->canonpath) { my @path_eg = qw( SYS trick dir/now_OK ); is( $MM->catdir( @path_eg ), 'SYS\\trick\\dir\\now_OK', 'catdir()' ); is( $MM->catdir( @path_eg ), File::Spec->catdir( @path_eg ), 'catdir() eq File::Spec->catdir()' ); # catfile() (calls MM_NW5->catdir) push @path_eg, 'file.ext'; is( $MM->catfile( @path_eg ), 'SYS\\trick\\dir\\now_OK\\file.ext', 'catfile()' ); is( $MM->catfile( @path_eg ), File::Spec->catfile( @path_eg ), 'catfile() eq File::Spec->catfile()' ); } # init_others(): check if all keys are created and set? # qw( TOUCH CHMOD CP RM_F RM_RF MV NOOP TEST_F LD AR LDLOADLIBS DEV_NUL ) { my $mm_w32 = bless( {}, 'MM' ); $mm_w32->init_others(); my @keys = qw( TOUCH CHMOD CP RM_F RM_RF MV NOOP TEST_F LD AR LDLOADLIBS DEV_NULL ); for my $key ( @keys ) { ok( $mm_w32->{ $key }, "init_others: $key" ); } } # constants() { my $mm_w32 = bless { NAME => 'TestMM_NW5', VERSION => '1.00', VERSION_FROM => 'TestMM_NW5', PM => { 'MM_NW5.pm' => 1 }, }, 'MM'; # XXX Hack until we have a proper init method. # Flesh out some necessary keys in the MM object. foreach my $key (qw(XS C O_FILES H HTMLLIBPODS HTMLSCRIPTPODS MAN1PODS MAN3PODS PARENT_NAME)) { $mm_w32->{$key} = ''; } my $s_PM = join( " \\\n\t", sort keys %{$mm_w32->{PM}} ); my $k_PM = join( " \\\n\t", %{$mm_w32->{PM}} ); like( $mm_w32->constants(), qr|^NAME\ =\ TestMM_NW5\s+VERSION\ =\ 1\.00.+ MAKEMAKER\ =\ \Q$INC{'ExtUtils/MakeMaker.pm'}\E\s+ MM_VERSION\ =\ \Q$ExtUtils::MakeMaker::VERSION\E.+ VERSION_FROM\ =\ TestMM_NW5.+ TO_INST_PM\ =\ \Q$s_PM\E\s+ PM_TO_BLIB\ =\ \Q$k_PM\E |xs, 'constants()' ); } # path() my $had_path = exists $ENV{PATH}; { my @path_eg = ( qw( . .. ), 'SYS:\\Program Files' ); local $ENV{PATH} = join ';', @path_eg; ok( eq_array( [ $MM->path() ], [ @path_eg ] ), 'path() [preset]' ); } # Bug in Perl. local $ENV{FOO} will not delete key afterwards. delete $ENV{PATH} unless $had_path; # static_lib() should look into that # dynamic_bs() should look into that # dynamic_lib() should look into that # clean() { my $clean = $Config{cc} =~ /^gcc/i ? 'dll.base dll.exp' : '*.pdb'; like( $MM->clean(), qr/^clean ::\s+\Q-$(RM_F) $clean\E\s+$/m, 'clean() Makefile target' ); } # init_linker { my $libperl = $Config{libperl} || 'libperl.a'; my $export = '$(BASEEXT).def'; my $after = ''; $MM->init_linker; is( $MM->{PERL_ARCHIVE}, $libperl, 'PERL_ARCHIVE' ); is( $MM->{PERL_ARCHIVE_AFTER}, $after, 'PERL_ARCHIVE_AFTER' ); is( $MM->{EXPORT_LIST}, $export, 'EXPORT_LIST' ); } # canonpath() { my $path = 'SYS:/TEMP'; is( $MM->canonpath( $path ), File::Spec->canonpath( $path ), 'canonpath() eq File::Spec->canonpath' ); } # perl_script() my $script_ext = ''; my $script_name = 'mm_w32tmp'; SKIP: { local *SCRIPT; skip( "Can't create temp file: $!", 4 ) unless open SCRIPT, "> $script_name"; print SCRIPT <<'EOSCRIPT'; #! perl __END__ EOSCRIPT skip( "Can't write to temp file: $!", 4 ) unless close SCRIPT; # now start tests: is( $MM->perl_script( $script_name ), "${script_name}$script_ext", "perl_script ($script_ext)" ); skip( "Can't rename temp file: $!", 3 ) unless rename $script_name, "${script_name}.pl"; $script_ext = '.pl'; is( $MM->perl_script( $script_name ), "${script_name}$script_ext", "perl_script ($script_ext)" ); skip( "Can't rename temp file: $!", 2 ) unless rename "${script_name}$script_ext", "${script_name}.bat"; $script_ext = '.bat'; is( $MM->perl_script( $script_name ), "${script_name}$script_ext", "perl_script ($script_ext)" ); skip( "Can't rename temp file: $!", 1 ) unless rename "${script_name}$script_ext", "${script_name}.noscript"; $script_ext = '.noscript'; isnt( $MM->perl_script( $script_name ), "${script_name}$script_ext", "not a perl_script anymore ($script_ext)" ); is( $MM->perl_script( $script_name ), undef, "perl_script ($script_ext) returns empty" ); } unlink "${script_name}$script_ext" if -f "${script_name}$script_ext"; # pm_to_blib() { like( $MM->pm_to_blib(), qr/^pm_to_blib: \Q$(TO_INST_PM)\E.+\Q$(TOUCH) \E\$@\s+$/ms, 'pm_to_blib' ); } # tool_autosplit() { my %attribs = ( MAXLEN => 255 ); like( $MM->tool_autosplit( %attribs ), qr/^\#\ Usage:\ \$\(AUTOSPLITFILE\) \ FileToSplit\ AutoDirToSplitInto.+ AUTOSPLITFILE\ =\ \$\(PERLRUN\)\ .+ \$AutoSplit::Maxlen=$attribs{MAXLEN}; /xms, 'tool_autosplit()' ); } # xs_o() should look into that # top_targets() should look into that # dist_ci() should look into that # dist_core() should look into that # pasthru() { my $pastru = "PASTHRU = " . ($Config{make} =~ /^nmake/i ? "-nologo" : ""); is( $MM->pasthru(), $pastru, 'pasthru()' ); } package FakeOut; sub TIEHANDLE { bless(\(my $scalar), $_[0]); } sub PRINT { my $self = shift; $$self .= shift; } __END__ =head1 NAME MM_NW5.t - Tests for ExtUtils::MM_NW5 =head1 TODO - Methods to still be checked: # static_lib() should look into that # dynamic_bs() should look into that # dynamic_lib() should look into that # xs_o() should look into that # top_targets() should look into that # dist_ci() should look into that # dist_core() should look into that =head1 AUTHOR 20011228 Abe Timmerman <abe@ztreet.demon.nl> =cut