Changeset 21473

Show
Ignore:
Timestamp:
10/17/08 12:55:42 (5 years ago)
Author:
yappo
Message:

shout up

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Module-Setup/trunk/t/98_perlcritic.t

    r20300 r21473  
    11use strict; 
    22use Test::More; 
    3 eval { 
    4     require Test::Perl::Critic; 
    5     Test::Perl::Critic->import( -profile => 't/perlcriticrc'); 
    6 }; 
    7 plan skip_all => "Test::Perl::Critic is not installed." if $@; 
    8 all_critic_ok('lib'); 
     3 
     4if (! $ENV{TEST_CRITIC}) { 
     5    plan(skip_all => "Set TEST_CRITIC environment variable to run this test"); 
     6} else { 
     7    eval { 
     8        require Test::Perl::Critic; 
     9        require Perl::Critic; 
     10        die "oops. very old." if $Perl::Critic::VERSION < 1.082; 
     11        Test::Perl::Critic->import( -profile => 't/perlcriticrc'); 
     12    }; 
     13    plan skip_all => "Test::Perl::Critic >= 1.082 is not installed." if $@; 
     14    all_critic_ok('lib'); 
     15}