123456789101112131415161718192021222324252627282930313233343536 |
- #!perl -T
- # vi: set tabstop=4 expandtab shiftwidth=4:
- use strict;
- use warnings;
- use ExtUtils::Manifest qw/maniread/;
- use Test::More;
- delete $ENV{PATH};
- my @modules;
- BEGIN {
- my $manifest = maniread();
- die 'Unable to read MANIFEST' unless $manifest;
- foreach my $file (keys %$manifest) {
- if ($file =~ m/^lib\/.*\.pm$/x) {
- my $module = $file;
- $module =~ s/^lib\///x;
- $module =~ s/\.pm$//x;
- $module =~ s/\//::/gx;
- push @modules, ($module);
- }
- }
- }
- plan(tests => scalar @modules);
- foreach my $module (sort @modules) {
- use_ok($module) || die "Bail out!\n";
- }
- diag( "Testing CMS $CMS::VERSION, Perl $], $^X" );
|