Avoid super long command lines when not aggregating
[catagits/Catalyst-Runtime.git] / t / aggregate.t
CommitLineData
bf6d41be 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/lib";
a06394ac 8use File::Spec::Functions 'catfile', 'updir';
9
10BEGIN {
11 unless (-e catfile $FindBin::Bin, updir, '.aggregating') {
12 require Test::More;
13 Test::More::plan(skip_all => 'No test aggregation requested');
14 }
15}
bf6d41be 16
ea571bd0 17BEGIN {
e8e8895a 18 unless (eval { require Test::Aggregate; Test::Aggregate->VERSION('0.364'); 1 }) {
ea571bd0 19 require Test::More;
e8e8895a 20 Test::More::plan(skip_all => 'Test::Aggregate 0.364 required for test aggregation');
ea571bd0 21 }
22}
bf6d41be 23
24my $tests = Test::Aggregate->new({
ff9ac86d 25 (@ARGV ? (tests => \@ARGV) : (dirs => 't/aggregate')),
ee534e6b 26 verbose => 0,
bf6d41be 27 set_filenames => 1,
9de53c41 28 findbin => 1,
bf6d41be 29});
30
31$tests->run;