Some more status output.
This commit is contained in:
parent
0540cd7d3e
commit
dc0448db3a
1 changed files with 10 additions and 6 deletions
16
test.pl
16
test.pl
|
@ -87,6 +87,7 @@ sub dep_order {
|
|||
my @orders;
|
||||
|
||||
for my $dep ($module->depends->@*) {
|
||||
print "\r", $dep->name, " ";
|
||||
push @orders, dep_order($dep);
|
||||
}
|
||||
|
||||
|
@ -105,10 +106,6 @@ sub run_cpanm {
|
|||
run \@cmd, '>&', \$out;
|
||||
|
||||
my $exitcode = $?;
|
||||
if ($exitcode) {
|
||||
print "command failed\n"; # TODO save output?
|
||||
print $out;
|
||||
}
|
||||
|
||||
return ($exitcode, $out);
|
||||
}
|
||||
|
@ -133,8 +130,15 @@ sub test_module {
|
|||
}
|
||||
}
|
||||
|
||||
$|++;
|
||||
print "Init\n";
|
||||
|
||||
my $foo = Module->new_module('Moose');
|
||||
|
||||
print Dumper([map {$_->name} uniq dep_order($foo)]);
|
||||
print "Building dep list\n";
|
||||
my @modules = map {$_->name} uniq dep_order($foo);
|
||||
|
||||
test_module('Clone');
|
||||
for my $mod (@modules) {
|
||||
print "Testing $mod\n";
|
||||
test_module($mod);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue