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