| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Test::Run::Builder; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
9
|
use strict; |
|
|
1
|
|
|
|
|
14
|
|
|
|
1
|
|
|
|
|
57
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
11
|
|
|
|
1
|
|
|
|
|
87
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
868
|
use Module::Build; |
|
|
1
|
|
|
|
|
176285
|
|
|
|
1
|
|
|
|
|
74
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
11
|
use vars qw(@ISA); |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
18461
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
@ISA = (qw(Module::Build)); |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub ACTION_runtest |
|
13
|
|
|
|
|
|
|
{ |
|
14
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
|
15
|
0
|
|
|
|
|
|
my $p = $self->{properties}; |
|
16
|
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
$self->depends_on('code'); |
|
18
|
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
local @INC = @INC; |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
# Make sure we test the module in blib/ |
|
22
|
|
|
|
|
|
|
unshift @INC, (File::Spec->catdir($p->{base_dir}, $self->blib, 'lib'), |
|
23
|
0
|
|
|
|
|
|
File::Spec->catdir($p->{base_dir}, $self->blib, 'arch')); |
|
24
|
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
$self->do_test_run_tests; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub ACTION_distruntest { |
|
29
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
|
30
|
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
$self->depends_on('distdir'); |
|
32
|
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
my $start_dir = $self->cwd; |
|
34
|
0
|
|
|
|
|
|
my $dist_dir = $self->dist_dir; |
|
35
|
0
|
0
|
|
|
|
|
chdir $dist_dir or die "Cannot chdir to $dist_dir: $!"; |
|
36
|
|
|
|
|
|
|
# XXX could be different names for scripts |
|
37
|
|
|
|
|
|
|
|
|
38
|
0
|
0
|
|
|
|
|
$self->run_perl_script('Build.PL') # XXX Should this be run w/ --nouse-rcfile |
|
39
|
|
|
|
|
|
|
or die "Error executing 'Build.PL' in dist directory: $!"; |
|
40
|
0
|
0
|
|
|
|
|
$self->run_perl_script('Build') |
|
41
|
|
|
|
|
|
|
or die "Error executing 'Build' in dist directory: $!"; |
|
42
|
0
|
0
|
|
|
|
|
$self->run_perl_script('Build', [], ['runtest']) |
|
43
|
|
|
|
|
|
|
or die "Error executing 'Build test' in dist directory"; |
|
44
|
0
|
|
|
|
|
|
chdir $start_dir; |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub do_test_run_tests |
|
48
|
|
|
|
|
|
|
{ |
|
49
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
50
|
|
|
|
|
|
|
|
|
51
|
0
|
|
|
|
|
|
require Test::Run::CmdLine::Iface; |
|
52
|
|
|
|
|
|
|
|
|
53
|
0
|
|
|
|
|
|
my $test_run = |
|
54
|
|
|
|
|
|
|
Test::Run::CmdLine::Iface->new( |
|
55
|
|
|
|
|
|
|
{ |
|
56
|
|
|
|
|
|
|
'test_files' => [glob("t/*.t")], |
|
57
|
|
|
|
|
|
|
} |
|
58
|
|
|
|
|
|
|
# 'backend_params' => $self->_get_backend_params(), |
|
59
|
|
|
|
|
|
|
); |
|
60
|
|
|
|
|
|
|
|
|
61
|
0
|
|
|
|
|
|
return $test_run->run(); |
|
62
|
|
|
|
|
|
|
} |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub ACTION_tags |
|
65
|
|
|
|
|
|
|
{ |
|
66
|
|
|
|
|
|
|
return |
|
67
|
0
|
|
|
0
|
0
|
|
system(qw( |
|
68
|
|
|
|
|
|
|
ctags -f tags --recurse --totals |
|
69
|
|
|
|
|
|
|
--exclude=blib/** --exclude=t/lib/** |
|
70
|
|
|
|
|
|
|
--exclude=.svn --exclude='*~' |
|
71
|
|
|
|
|
|
|
--languages=Perl --langmap=Perl:+.t |
|
72
|
|
|
|
|
|
|
)); |
|
73
|
|
|
|
|
|
|
} |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
1; |
|
76
|
|
|
|
|
|
|
|