Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f10f612c38
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (31 sloc) 0.777 kb
use strict;
use warnings;
use Test::More 0.96 tests => 2;
use Test::Output;
use autodie;
use Test::DZil;
use Moose::Autobox;
my $tzil;
stderr_like(
sub {
$tzil = Builder->from_config(
{ dist_root => 'corpus/DZ1' },
{ add_files => {
'source/dist.ini' => simple_ini('GatherDir', 'SynopsisTests')
}
},
);
},
qr/^!!!.*deprecate/,
'Got a deprecation warning'
);
$tzil->build;
my @xtests = map $_->name =~ m{^xt/} ? $_->name : (), $tzil->files->flatten;
ok(
(grep { $_ eq 'xt/release/synopsis.t' } @xtests),
'synopsis.t exists'
) or diag explain \@xtests;
END { # Remove (empty) dir created by building the dists
require File::Path;
File::Path::rmtree('tmp');
}
Jump to Line
Something went wrong with that request. Please try again.