The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use Test::More;
use File::Find;
use CPAN ();

my @modules;
find( sub { push @modules, $File::Find::name if /\.pm$/ }, 'blib/lib' );

plan tests => scalar @modules;

use_ok($_)
    for reverse sort map { s!/!::!g; s/\.pm$//; s/^blib::lib:://; $_ }
    @modules;

diag("Tested Git::CPAN::Hook $Git::CPAN::Hook::VERSION, Perl $], $^X");

no strict 'refs';
diag(qq{$_ version ${"$_\::VERSION"}}) for qw(
    CPAN
    Git::Repository
    System::Command
);
diag Git::Repository->run("version");