line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Installer; |
2
|
|
|
|
|
|
|
# git description: v4.1.0-1-gbb7ee4f |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
BEGIN { |
5
|
9
|
|
|
9
|
|
8150
|
$Tapper::Installer::AUTHORITY = 'cpan:TAPPER'; |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
{ |
8
|
|
|
|
|
|
|
$Tapper::Installer::VERSION = '4.1.1'; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Install everything needed for a test |
11
|
|
|
|
|
|
|
|
12
|
9
|
|
|
9
|
|
81
|
use strict; |
|
9
|
|
|
|
|
20
|
|
|
9
|
|
|
|
|
337
|
|
13
|
9
|
|
|
9
|
|
54
|
use warnings; |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
300
|
|
14
|
|
|
|
|
|
|
|
15
|
9
|
|
|
9
|
|
1027
|
use Moose; |
|
9
|
|
|
|
|
520907
|
|
|
9
|
|
|
|
|
94
|
|
16
|
9
|
|
|
9
|
|
71887
|
use Socket; |
|
9
|
|
|
|
|
4669
|
|
|
9
|
|
|
|
|
6853
|
|
17
|
9
|
|
|
9
|
|
9762
|
use URI::Escape "uri_escape"; |
|
9
|
|
|
|
|
20159
|
|
|
9
|
|
|
|
|
2678
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
extends 'Tapper::Base'; |
20
|
|
|
|
|
|
|
with 'MooseX::Log::Log4perl'; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has cfg => (is => 'rw', |
23
|
|
|
|
|
|
|
default => sub { {} }, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
with 'Tapper::Remote::Net'; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub BUILD |
29
|
|
|
|
|
|
|
{ |
30
|
0
|
|
|
0
|
|
|
my ($self, $config) = @_; |
31
|
0
|
|
|
|
|
|
$self->{cfg}=$config; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub logdie |
36
|
|
|
|
|
|
|
{ |
37
|
0
|
|
|
0
|
|
|
my ($self, $msg) = @_; |
38
|
0
|
0
|
|
|
|
|
if ($self->cfg->{mcp_host}) { |
39
|
0
|
|
|
|
|
|
$self->mcp_send({state => 'error-install', error => $msg}); |
40
|
|
|
|
|
|
|
} else { |
41
|
0
|
|
|
|
|
|
$self->log->error("Can't inform MCP, no server is set"); |
42
|
|
|
|
|
|
|
} |
43
|
0
|
|
|
|
|
|
die $msg; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |
49
|
|
|
|
|
|
|
=pod |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=encoding utf-8 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 NAME |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Tapper::Installer - Tapper - Install everything needed for a test |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 BUILD |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Initialize with config. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 FUNCTIONS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 logdie |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Tell the MCP server our current status, then die(). |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
@param string - message to send to MCP |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 AUTHOR |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc.. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This is free software, licensed under: |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=cut |
82
|
|
|
|
|
|
|
|