line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::PRC; |
2
|
|
|
|
|
|
|
# git description: v4.1.1-11-g75f1086 |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
BEGIN { |
5
|
2
|
|
|
2
|
|
260333
|
$Tapper::PRC::AUTHORITY = 'cpan:TAPPER'; |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
{ |
8
|
|
|
|
|
|
|
$Tapper::PRC::VERSION = '4.1.2'; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Program run control for test program automation |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
|
20
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
102
|
|
13
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
62
|
|
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
|
44438
|
use IO::Socket::INET; |
|
2
|
|
|
|
|
101411
|
|
|
2
|
|
|
|
|
18
|
|
16
|
2
|
|
|
2
|
|
6653
|
use YAML::Syck; |
|
2
|
|
|
|
|
9392
|
|
|
2
|
|
|
|
|
160
|
|
17
|
2
|
|
|
2
|
|
18995
|
use Moose; |
|
2
|
|
|
|
|
1750139
|
|
|
2
|
|
|
|
|
18
|
|
18
|
2
|
|
|
2
|
|
218612
|
use Log::Log4perl; |
|
2
|
|
|
|
|
182718
|
|
|
2
|
|
|
|
|
18
|
|
19
|
2
|
|
|
2
|
|
2553
|
use URI::Escape; |
|
2
|
|
|
|
|
3646
|
|
|
2
|
|
|
|
|
591
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
extends 'Tapper::Base'; |
22
|
|
|
|
|
|
|
with 'MooseX::Log::Log4perl'; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has cfg => (is => 'rw', |
25
|
|
|
|
|
|
|
isa => 'HashRef', |
26
|
|
|
|
|
|
|
default => sub { {} }, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
with 'Tapper::Remote::Net'; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub mcp_error |
32
|
|
|
|
|
|
|
{ |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
|
|
my ($self, $error) = @_; |
35
|
0
|
|
|
|
|
|
$self->log->error($error); |
36
|
0
|
|
|
|
|
|
my $retval = $self->mcp_inform({status => 'error-testprogram', error => $error}); |
37
|
0
|
0
|
|
|
|
|
$self->log->error($retval) if $retval; |
38
|
0
|
|
|
|
|
|
exit 1; |
39
|
|
|
|
|
|
|
}; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |
44
|
|
|
|
|
|
|
=pod |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=encoding utf-8 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 NAME |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Tapper::PRC - Tapper - Program run control for test program automation |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 DESCRIPTION |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This distribution implements a program run control for test program |
55
|
|
|
|
|
|
|
automation. It is part of the Tapper distribution. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 FUNCTIONS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 mcp_error |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Log an error and exit. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
@param string - messages to send to MCP |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
@return never returns |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc.. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This is free software, licensed under: |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |
80
|
|
|
|
|
|
|
|