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=e52e7663f042f1c18fc6490cf1d8d7860d612efd;hb=14b0dab3b4ba38d8de513a46d902a0eca4068841;hpb=9de53c41f4492742f66de821b86b562a1b97288a diff --git a/t/aggregate.t b/t/aggregate.t index e52e766..e071379 100644 --- a/t/aggregate.t +++ b/t/aggregate.t @@ -1,16 +1,27 @@ -#!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, });