X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate.t;h=e0713791e59152bb702240d51d9384304c244d19;hp=fc10888abdaa65dcd478795213cddc826e78ae85;hb=14b0dab3b4ba38d8de513a46d902a0eca4068841;hpb=bf6d41befe434ea682a1e20dcb090e05237d713a diff --git a/t/aggregate.t b/t/aggregate.t index fc10888..e071379 100644 --- a/t/aggregate.t +++ b/t/aggregate.t @@ -1,17 +1,29 @@ -#!perl - use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; +use File::Spec::Functions 'catfile', 'updir'; + +BEGIN { + unless (-e catfile $FindBin::Bin, updir, '.aggregating') { + require Test::More; + Test::More::plan(skip_all => 'No test aggregation requested'); + } +} -use Test::Aggregate; +BEGIN { + unless (eval { require Test::Aggregate; Test::Aggregate->VERSION('0.364'); 1 }) { + require Test::More; + Test::More::plan(skip_all => 'Test::Aggregate 0.364 required for test aggregation'); + } +} my $tests = Test::Aggregate->new({ - dirs => 't/aggregate', - verbose => 1, + (@ARGV ? (tests => \@ARGV) : (dirs => 't/aggregate')), + verbose => 0, set_filenames => 1, + findbin => 1, }); $tests->run;