1#!perl
2use strict;
3use warnings;
4use Test::More;
5
6if ($ENV{PERL_TEST_CRITIC}) {
7  if (eval { require Test::Perl::Critic }) {
8    Test::Perl::Critic::all_critic_ok();
9  } else {
10    plan skip_all => "couldn't load Test::Perl::Critic";
11  }
12} else {
13  plan skip_all => "define PERL_TEST_CRITIC to run these tests";
14}
15