| 1 | package Tapper::PRC; | ||||||||||
| 2 | # git description: v5.0.3-3-g416e1c7 | ||||||||||
| 3 | |||||||||||
| 4 | 26 | our $AUTHORITY = 'cpan:TAPPER'; | |||||||||
| 5 | # ABSTRACT: Tapper - Program run control for test program automation | ||||||||||
| 6 | 26 | $Tapper::PRC::VERSION = '5.0.4'; | |||||||||
| 7 | 26 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 26 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 26 | ▶ | use IO::Socket::INET; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 26 | ▶ | use YAML::Syck; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 26 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 26 | ▶ | use Log::Log4perl; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 26 | ▶ | use URI::Escape; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 26 | extends 'Tapper::Base'; | |||||||||
| 17 | 26 | with 'MooseX::Log::Log4perl'; | |||||||||
| 18 | |||||||||||
| 19 | has cfg => (is => 'rw', | ||||||||||
| 20 | isa => 'HashRef', | ||||||||||
| 21 | 15 | ▶ | default => sub { {} }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 26 | ); | |||||||||
| 23 | 26 | with 'Tapper::Remote::Net'; | |||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | sub mcp_error | ||||||||||
| 27 | { | ||||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | my ($self, $error) = @_; | ||||||||
|
Subroutine
mcp_error: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 30 | 0 | $self->log->error($error); | |||||||||
| 31 | 0 | my $retval = $self->mcp_inform({status => 'error-testprogram', error => $error}); | |||||||||
| 32 | 0 | ▶ | $self->log->error($retval) if $retval; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | 0 | exit 1; | |||||||||
| 34 | }; | ||||||||||
| 35 | |||||||||||
| 36 | 26 | 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 | ||||||||||