1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!perl
use strict;
use warnings;
use Test::More 0.89;
use lib 't/lib';
use Test::LivesOK 'lives_ok';
use ExtUtils::Builder::Planner;
my $planner = ExtUtils::Builder::Planner->new;
$planner->run_dsl('t/dsl.pl');
my $plan = $planner->materialize;
lives_ok { $plan->run('foo') } 'Executing gave no errors';
our @triggered;
is_deeply(\@triggered, [ 0..2 ], 'All actions triggered');
my %nodes;
my @order = qw/foo2 foo1 foo0/;
is_deeply([ $plan->node_names ], [ qw/foo foo0 foo1 foo2/ ], 'Got expected nodes');
done_testing;
|