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=7943b5b0b66b545bd59856cfa88eaf6ce078b2d7;hb=e58ebdf09e62b632250b7253aa10e5357492c14a;hpb=ea571bd0b0af864834d0dc4554f27090bfd836b3 diff --git a/t/aggregate.t b/t/aggregate.t index 7943b5b..e071379 100644 --- a/t/aggregate.t +++ b/t/aggregate.t @@ -1,20 +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'); + } +} BEGIN { - unless (eval { require Test::Aggregate; Test::Aggregate->VERSION('0.35_05'); 1 }) { + unless (eval { require Test::Aggregate; Test::Aggregate->VERSION('0.364'); 1 }) { require Test::More; - Test::More::plan(skip_all => 'Test::Aggregate 0.35_05 required for test aggregation'); + 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,