#!/usr/bin/perl
BEGIN {
$| = 1;
$^W = 1;
}
my
@MODULES
= (
'Perl::Critic::Utils 1.105'
,
);
unless
(
$ENV
{AUTOMATED_TESTING} or
$ENV
{RELEASE_TESTING} ) {
plan(
skip_all
=>
"Author tests not required for installation"
);
}
eval
"use Perl::Critic::Utils 1.105"
;
if
( $@ ) {
$ENV
{RELEASE_TESTING}
?
die
(
"Failed to load required release-testing module Perl::Critic::Utils"
)
: plan(
skip_all
=>
"Perl::Critic::Utils not available for testing"
);
}
my
@perl_files
= Perl::Critic::Utils::all_perl_files(
$Bin
.
q{/../lib/}
);
plan
tests
=>
scalar
@perl_files
;
foreach
my
$file
(
@perl_files
) {
require_ok(
$file
);
}