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 /
Delete
Unzip
Name
Size
Permission
Date
Action
actions
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
bundled
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
compat
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
lib
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
properties
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
00-compile.t
357
B
-r--r--r--
2014-12-27 11:49
PL_files.t
2.18
KB
-r--r--r--
2014-12-27 11:49
README.pod
2.94
KB
-r--r--r--
2014-12-27 11:49
add_property.t
3.1
KB
-r--r--r--
2014-12-27 11:49
add_property_array.t
349
B
-r--r--r--
2014-12-27 11:49
add_property_hash.t
351
B
-r--r--r--
2014-12-27 11:49
basic.t
6.48
KB
-r--r--r--
2014-12-27 11:49
bundle_inc.t
6.02
KB
-r--r--r--
2014-12-27 11:49
compat.t
15.42
KB
-r--r--r--
2014-12-27 11:49
debug.t
555
B
-r--r--r--
2014-12-27 11:49
destinations.t
9.52
KB
-r--r--r--
2014-12-27 11:49
ext.t
5.91
KB
-r--r--r--
2014-12-27 11:49
extend.t
6.7
KB
-r--r--r--
2014-12-27 11:49
files.t
905
B
-r--r--r--
2014-12-27 11:49
help.t
5.2
KB
-r--r--r--
2014-12-27 11:49
install.t
6.03
KB
-r--r--r--
2014-12-27 11:49
install_extra_target.t
2.94
KB
-r--r--r--
2014-12-27 11:49
manifypods.t
3.53
KB
-r--r--r--
2014-12-27 11:49
manifypods_with_utf8.t
1.61
KB
-r--r--r--
2014-12-27 11:49
metadata.t
3.13
KB
-r--r--r--
2014-12-27 11:49
metadata2.t
2.93
KB
-r--r--r--
2014-12-27 11:49
mymeta.t
5.23
KB
-r--r--r--
2014-12-27 11:49
new_from_context.t
429
B
-r--r--r--
2014-12-27 11:49
notes.t
1.26
KB
-r--r--r--
2014-12-27 11:49
parents.t
1.34
KB
-r--r--r--
2014-12-27 11:49
perl_mb_opt.t
1.63
KB
-r--r--r--
2014-12-27 11:49
pod_parser.t
2.77
KB
-r--r--r--
2014-12-27 11:49
ppm.t
5.43
KB
-r--r--r--
2014-12-27 11:49
resume.t
989
B
-r--r--r--
2014-12-27 11:49
runthrough.t
4.88
KB
-r--r--r--
2014-12-27 11:49
sample.t
589
B
-r--r--r--
2014-12-27 11:49
script_dist.t
1.78
KB
-r--r--r--
2014-12-27 11:49
test_file_exts.t
959
B
-r--r--r--
2014-12-27 11:49
test_reqs.t
1.04
KB
-r--r--r--
2014-12-27 11:49
test_type.t
1.41
KB
-r--r--r--
2014-12-27 11:49
test_types.t
4.24
KB
-r--r--r--
2014-12-27 11:49
tilde.t
2.89
KB
-r--r--r--
2014-12-27 11:49
unit_run_test_harness.t
2.34
KB
-r--r--r--
2014-12-27 11:49
use_tap_harness.t
2.42
KB
-r--r--r--
2014-12-27 11:49
versions.t
502
B
-r--r--r--
2014-12-27 11:49
write_default_maniskip.t
932
B
-r--r--r--
2014-12-27 11:49
xs.t
4.38
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!/usr/bin/perl -w use strict; use lib 't/lib'; use MBTest; my @unix_splits = ( { q{one t'wo th'ree f"o\"ur " "five" } => [ 'one', 'two three', 'fo"ur ', 'five' ] }, { q{ foo bar } => [ 'foo', 'bar' ] }, { q{ D\'oh f\{g\'h\"i\]\* } => [ "D'oh", "f{g'h\"i]*" ] }, { q{ D\$foo } => [ 'D$foo' ] }, { qq{one\\\ntwo} => [ "one\ntwo" ] }, # TODO ); my @win_splits = ( { 'a" "b\\c" "d' => [ 'a b\c d' ] }, { '"a b\\c d"' => [ 'a b\c d' ] }, { '"a b"\\"c d"' => [ 'a b"c', 'd' ] }, { '"a b"\\\\"c d"' => [ 'a b\c d' ] }, { '"a"\\"b" "a\\"b"' => [ 'a"b a"b' ] }, { '"a"\\\\"b" "a\\\\"b"' => [ 'a\b', 'a\b' ] }, { '"a"\\"b a\\"b"' => [ 'a"b', 'a"b' ] }, { 'a"\\"b" "a\\"b' => [ 'a"b', 'a"b' ] }, { 'a"\\"b" "a\\"b' => [ 'a"b', 'a"b' ] }, { 'a b' => [ 'a', 'b' ] }, { 'a"\\"b a\\"b' => [ 'a"b a"b' ] }, { '"a""b" "a"b"' => [ 'a"b ab' ] }, { '\\"a\\"' => [ '"a"' ] }, { '"a"" "b"' => [ 'a"', 'b' ] }, { 'a"b' => [ 'ab' ] }, { 'a""b' => [ 'ab' ] }, { 'a"""b' => [ 'a"b' ] }, { 'a""""b' => [ 'a"b' ] }, { 'a"""""b' => [ 'a"b' ] }, { 'a""""""b' => [ 'a""b' ] }, { '"a"b"' => [ 'ab' ] }, { '"a""b"' => [ 'a"b' ] }, { '"a"""b"' => [ 'a"b' ] }, { '"a""""b"' => [ 'a"b' ] }, { '"a"""""b"' => [ 'a""b' ] }, { '"a""""""b"' => [ 'a""b' ] }, { '' => [ ] }, { ' ' => [ ] }, { '""' => [ '' ] }, { '" "' => [ ' ' ] }, { '""a' => [ 'a' ] }, { '""a b' => [ 'a', 'b' ] }, { 'a""' => [ 'a' ] }, { 'a"" b' => [ 'a', 'b' ] }, { '"" a' => [ '', 'a' ] }, { 'a ""' => [ 'a', '' ] }, { 'a "" b' => [ 'a', '', 'b' ] }, { 'a " " b' => [ 'a', ' ', 'b' ] }, { 'a " b " c' => [ 'a', ' b ', 'c' ] }, ); plan tests => 9 + 4*@unix_splits + 4*@win_splits; blib_load('Module::Build'); blib_load('Module::Build::Platform::Unix'); blib_load('Module::Build::Platform::Windows'); ######################### # Should always return an array unscathed foreach my $platform ('', '::Platform::Unix', '::Platform::Windows') { my $pkg = "Module::Build$platform"; my @result = $pkg->split_like_shell(['foo', 'bar', 'baz']); is @result, 3, "Split using $pkg"; is "@result", "foo bar baz", "Split using $pkg"; } # I think 3.24 isn't actually the majik version, my 3.23 seems to pass... my $low_TPW_version = Text::ParseWords->VERSION < 3.24; foreach my $test (@unix_splits) { # Text::ParseWords bug: local $TODO = $low_TPW_version && ((keys %$test)[0] =~ m{\\\n}); do_split_tests('Module::Build::Platform::Unix', $test); } foreach my $test (@win_splits) { do_split_tests('Module::Build::Platform::Windows', $test); } { # Make sure read_args() functions properly as a class method my @args = qw(foo=bar --food bard --foods=bards); my ($args) = Module::Build->read_args(@args); is_deeply($args, {foo => 'bar', food => 'bard', foods => 'bards', ARGV => []}); } { # Make sure data can make a round-trip through unparse_args() and read_args() my %args = (foo => 'bar', food => 'bard', config => {a => 1, b => 2}, ARGV => []); my ($args) = Module::Build->read_args( Module::Build->unparse_args(\%args) ); is_deeply($args, \%args); } { # Make sure data can make a round-trip through an external perl # process, which can involve the shell command line # silence the printing for easier matching local *Module::Build::log_info = sub {}; my @data = map values(%$_), @unix_splits, @win_splits; for my $d (@data) { my $out = stdout_of ( sub { Module::Build->run_perl_script('-le', [], ['print join " ", map "{$_}", @ARGV', @$d]); } ); chomp $out; is($out, join(' ', map "{$_}", @$d), "perl round trip for ".join('',map "{$_}", @$d)); } } { # Make sure data can make a round-trip through an external backtick # process, which can involve the shell command line # silence the printing for easier matching local *Module::Build::log_info = sub {}; my @data = map values(%$_), @unix_splits, @win_splits; for my $d (@data) { chomp(my $out = Module::Build->_backticks($^X, '-le', 'print join " ", map "{$_}", @ARGV', @$d)); is($out, join(' ', map "{$_}", @$d), "backticks round trip for ".join('',map "{$_}", @$d)); } } { # Make sure run_perl_script() propagates @INC my $dir = MBTest->tmpdir; if ($^O eq 'VMS') { # VMS can store INC paths in Unix format with out the trailing # directory delimiter. $dir = VMS::Filespec::unixify($dir); $dir =~ s#/$##; } local @INC = ($dir, @INC); my $output = stdout_of( sub { Module::Build->run_perl_script('-le', [], ['print for @INC']) } ); like $output, qr{^\Q$dir\E}m; } ################################################################## sub do_split_tests { my ($package, $test) = @_; my ($string, $expected) = %$test; my @result = $package->split_like_shell($string); is( 0 + grep( !defined(), @result ), # all defined 0, "'$string' result all defined" ); is_deeply(\@result, $expected) or diag("$package split_like_shell error \n" . ">$string< is not splitting as >" . join("|", @$expected) . '<'); }