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=9b31a52b318df99cef418a6102219ddbebfd148c;hb=14b0dab3b4ba38d8de513a46d902a0eca4068841;hpb=ee534e6be5d846db690fd06c1ed4624716797d2d diff --git a/t/aggregate.t b/t/aggregate.t index 9b31a52..e071379 100644 --- a/t/aggregate.t +++ b/t/aggregate.t @@ -1,15 +1,26 @@ -#!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', + (@ARGV ? (tests => \@ARGV) : (dirs => 't/aggregate')), verbose => 0, set_filenames => 1, findbin => 1,