line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::PRC; |
2
|
|
|
|
|
|
|
# git description: v5.0.3-3-g416e1c7 |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
5
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Program run control for test program automation |
6
|
|
|
|
|
|
|
$Tapper::PRC::VERSION = '5.0.4'; |
7
|
26
|
|
|
26
|
|
280726
|
use strict; |
|
26
|
|
|
|
|
71
|
|
|
26
|
|
|
|
|
767
|
|
8
|
26
|
|
|
26
|
|
124
|
use warnings; |
|
26
|
|
|
|
|
38
|
|
|
26
|
|
|
|
|
740
|
|
9
|
|
|
|
|
|
|
|
10
|
26
|
|
|
26
|
|
1373
|
use IO::Socket::INET; |
|
26
|
|
|
|
|
52296
|
|
|
26
|
|
|
|
|
263
|
|
11
|
26
|
|
|
26
|
|
14519
|
use YAML::Syck; |
|
26
|
|
|
|
|
1669
|
|
|
26
|
|
|
|
|
1435
|
|
12
|
26
|
|
|
26
|
|
1597
|
use Moose; |
|
26
|
|
|
|
|
1159857
|
|
|
26
|
|
|
|
|
190
|
|
13
|
26
|
|
|
26
|
|
181182
|
use Log::Log4perl; |
|
26
|
|
|
|
|
301576
|
|
|
26
|
|
|
|
|
200
|
|
14
|
26
|
|
|
26
|
|
13355
|
use URI::Escape; |
|
26
|
|
|
|
|
36175
|
|
|
26
|
|
|
|
|
4809
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
extends 'Tapper::Base'; |
17
|
|
|
|
|
|
|
with 'MooseX::Log::Log4perl'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has cfg => (is => 'rw', |
20
|
|
|
|
|
|
|
isa => 'HashRef', |
21
|
|
|
|
|
|
|
default => sub { {} }, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
with 'Tapper::Remote::Net'; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub mcp_error |
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
my ($self, $error) = @_; |
30
|
0
|
|
|
|
|
|
$self->log->error($error); |
31
|
0
|
|
|
|
|
|
my $retval = $self->mcp_inform({status => 'error-testprogram', error => $error}); |
32
|
0
|
0
|
|
|
|
|
$self->log->error($retval) if $retval; |
33
|
0
|
|
|
|
|
|
exit 1; |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=pod |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=encoding UTF-8 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Tapper::PRC - Tapper - Program run control for test program automation |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 DESCRIPTION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This distribution implements a program run control for test program |
51
|
|
|
|
|
|
|
automation. It is part of the Tapper distribution. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 FUNCTIONS |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 mcp_error |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Log an error and exit. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
@param string - messages to send to MCP |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
@return never returns |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHORS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=back |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc.. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This is free software, licensed under: |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |