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 tests => 29; blib_load('Module::Build'); blib_load('Module::Build::ConfigData'); ######################### my $tmp = MBTest->tmpdir; use DistGen; my $dist = DistGen->new(); $dist->change_build_pl ({ module_name => 'Simple', scripts => [ 'script' ], license => 'perl', requires => { 'File::Spec' => 0 }, }); $dist->add_file( 'MANIFEST.SKIP', <<'---' ); ^MYMETA.yml$ --- $dist->add_file( 'script', <<'---' ); #!perl -w print "Hello, World!\n"; --- $dist->add_file( 'lib/Simple/Script.PL', <<'---' ); #!perl -w my $filename = shift; open FH, "> $filename" or die "Can't create $filename: $!"; print FH "Contents: $filename\n"; close FH; --- $dist->regen; $dist->chdir_in; ######################### my $mb = Module::Build->new_from_context; ok $mb; is $mb->license, 'perl'; # Make sure cleanup files added before create_build_script() get respected $mb->add_to_cleanup('before_script'); eval {$mb->create_build_script}; is $@, ''; ok -e $mb->build_script; my $dist_dir = 'Simple-0.01'; # VMS in traditional mode needs the $dist_dir name to not have a '.' in it # as this is a directory delimiter. In extended character set mode the dot # is permitted for Unix format file specifications. if ($^O eq 'VMS') { my $Is_VMS_noefs = 1; my $vms_efs = 0; if (eval 'require VMS::Feature') { $vms_efs = VMS::Feature::current("efs_charset"); } else { my $efs_charset = $ENV{'DECC$EFS_CHARSET'} || ''; $vms_efs = $efs_charset =~ /^[ET1]/i; } $Is_VMS_noefs = 0 if $vms_efs; if ($Is_VMS_noefs) { $dist_dir = 'Simple-0_01'; } } is $mb->dist_dir, $dist_dir; # The 'cleanup' file doesn't exist yet ok grep {$_ eq 'before_script'} $mb->cleanup; $mb->add_to_cleanup('save_out'); # The 'cleanup' file now exists ok grep {$_ eq 'before_script'} $mb->cleanup; ok grep {$_ eq 'save_out' } $mb->cleanup; { # Make sure verbose=>1 works my $all_ok = 1; my $output = eval { stdout_of( sub { $mb->dispatch('test', verbose => 1) } ) }; $all_ok &&= is($@, ''); $all_ok &&= like($output, qr/all tests successful/i); # This is the output of lib/Simple/Script.PL $all_ok &&= ok(-e $mb->localize_file_path('lib/Simple/Script')); unless ($all_ok) { # We use diag() so Test::Harness doesn't get confused. diag("vvvvvvvvvvvvvvvvvvvvv Simple/t/basic.t output vvvvvvvvvvvvvvvvvvvvv"); diag($output); diag("^^^^^^^^^^^^^^^^^^^^^ Simple/t/basic.t output ^^^^^^^^^^^^^^^^^^^^^"); } } { my $output = eval { stdout_stderr_of( sub { $mb->dispatch('disttest') } ) }; is $@, ''; # After a test, the distdir should contain a blib/ directory ok -e File::Spec->catdir('Simple-0.01', 'blib'); stdout_stderr_of ( sub { eval {$mb->dispatch('distdir')} } ); is $@, ''; # The 'distdir' should contain a lib/ directory ok -e File::Spec->catdir('Simple-0.01', 'lib'); # The freshly run 'distdir' should never contain a blib/ directory, or # else it could get into the tarball ok ! -e File::Spec->catdir('Simple-0.01', 'blib'); # Make sure all of the above was done by the new version of Module::Build open(my $fh, '<', File::Spec->catfile($dist->dirname, 'META.yml')); my $contents = do {local $/; <$fh>}; $contents =~ /Module::Build version ([0-9_.]+)/m; cmp_ok $1, '==', $mb->VERSION, "Check version used to create META.yml: $1 == " . $mb->VERSION; SKIP: { skip( "Archive::Tar 1.08+ not installed", 1 ) unless eval { require Archive::Tar && Archive::Tar->VERSION(1.08); 1 }; $mb->add_to_cleanup($mb->dist_dir . ".tar.gz"); eval {$mb->dispatch('dist')}; is $@, ''; } } { # Make sure the 'script' file was recognized as a script. my $scripts = $mb->script_files; ok $scripts->{script}; # Check that a shebang line is rewritten my $blib_script = File::Spec->catfile( qw( blib script script ) ); ok -e $blib_script; SKIP: { skip("We do not rewrite shebang on VMS", 1) if $^O eq 'VMS'; open(my $fh, '<', $blib_script); my $first_line = <$fh>; isnt $first_line, "#!perl -w\n", "should rewrite the shebang line"; } } eval {$mb->dispatch('realclean')}; is $@, ''; ok ! -e $mb->build_script; ok ! -e $mb->config_dir; ok ! -e $mb->dist_dir; SKIP: { skip( 'Windows-only test', 4 ) unless $^O =~ /^MSWin/; my $script_data = <<'---'; @echo off echo Hello, World! --- $dist = DistGen->new(); $dist->change_build_pl({ module_name => 'Simple', scripts => [ 'bin/script.bat' ], license => 'perl', }); $dist->add_file( 'bin/script.bat', $script_data ); $dist->regen; $dist->chdir_in; $mb = Module::Build->new_from_context; ok $mb; eval{ $mb->dispatch('build') }; is $@, ''; my $script_file = File::Spec->catfile( qw(blib script), 'script.bat' ); ok -f $script_file, "Native batch file copied to 'scripts'"; my $out = slurp( $script_file ); is $out, $script_data, ' unmodified by pl2bat'; }