Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create audit tool to validate the tarball links
Cleaned up links removing some RC links that are no longer valid
- Loading branch information
Showing
3 changed files
with
21 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use strict; | ||
use warnings; | ||
use Test::More qw[no_plan]; | ||
use CPAN::Perl::Releases qw[perl_tarballs perl_versions]; | ||
use HTTP::Tiny; | ||
|
||
my $baseurl = 'http://cpan.mirror.local/CPAN/authors/id/'; | ||
|
||
foreach my $vers ( perl_versions() ) { | ||
my $balls = perl_tarballs( $vers ); | ||
foreach my $tarball ( keys %$balls ) { | ||
my $url = $baseurl . $balls->{$tarball}; | ||
my $resp = HTTP::Tiny->new( )->get( $url ); | ||
unless ( $resp->{success} ) { | ||
fail( "$vers -> $tarball -> $url" ); | ||
} | ||
else { | ||
pass( "$vers -> $tarball -> $url" ); | ||
} | ||
} | ||
} |