line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
2
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
17
|
|
3
|
1
|
|
|
1
|
|
4
|
use utf8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Ukigumo::Client::Executor::Perl; |
6
|
1
|
|
|
1
|
|
23
|
use Config; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
7
|
1
|
|
|
1
|
|
5
|
use Mouse; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
8
|
1
|
|
|
1
|
|
304
|
use Ukigumo::Constants; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
273
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub run { |
11
|
0
|
|
|
0
|
0
|
|
my ($self, $c) = @_; |
12
|
|
|
|
|
|
|
|
13
|
0
|
0
|
|
|
|
|
if (-f 'Makefile.PL') { |
|
|
0
|
|
|
|
|
|
14
|
0
|
0
|
|
|
|
|
$c->tee("perl Makefile.PL")==0 or return STATUS_FAIL; |
15
|
0
|
0
|
|
|
|
|
$c->tee("$Config{make} test")==0 or return STATUS_FAIL; |
16
|
0
|
|
|
|
|
|
return STATUS_SUCCESS; |
17
|
|
|
|
|
|
|
} elsif (-f 'Build.PL') { |
18
|
0
|
0
|
|
|
|
|
$c->tee("perl Build.PL")==0 or return STATUS_FAIL; |
19
|
0
|
0
|
|
|
|
|
$c->tee($^O eq 'MSWin32' ? "Build test" : "./Build test")==0 or return STATUS_FAIL; |
|
|
0
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
return STATUS_SUCCESS; |
21
|
|
|
|
|
|
|
} else { |
22
|
0
|
|
|
|
|
|
$c->logger->warnf("There is no Makefile.PL or Build.PL"); |
23
|
0
|
|
|
|
|
|
return STATUS_NA; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |