NAME

Tapper::MCP::Info

SYNOPSIS

use Tapper::MCP::Info;

NAME

Tapper::MCP::Config - Object for cleaner API of handling mcp_info

FUNCTIONS

set_max_reboot

Set number of reboots to be used in a reboot test.

@param int - PRC number @param int - number of reboots

@return success - 0

get_max_reboot

Get number of reboots to be used in a reboot test for a given PRC number.

@param int - PRC number

@return success - Number of reboots or 0 if not set

add_prc

Add a PRC with given boot timeout.

@param int - PRC number @param int - boot timeout

@return success - 0 @return error - string

add_testprogram

Add a testprogram for a given PRC. The given config has should have the following elements: program - string - full path of the test program timeout - int - timeout value for the test program timeout_testprogram - int - timeout value for the test program (deprecated) parameters - array of string - parameter array as given to exec

@param int - PRC number @param hash ref - config options for program

@return success - 0 @return error - string

get_testprogram_timeouts

Get all testprogram timeouts for a given PRC.

@param int - PRC number

@returnlist success - array of ints

get_testprograms

Get all testprograms for a given PRC.

@param int - PRC number

@returnlist success - 0

get_prc_count

Get the number of PRCs in this object.

@return number of last PRC

get_boot_timeout

Returns the boot timeout for a given PRC

@param int - PRC number

@return success - Boot timeout, undef if not set

set_installer_timeout

Setter for installer timeout.

@param int - Timeout value

@return success - 0

get_installer_timeout

Getter for installer timeout.

@return success - Timeout value

push_report_msg

Add another message to the report we are going to send.

@param string - message

@return success - 0 @return error - string

get_report_array

Get the report array generated by push_report_msg.

@return success - report array reference

set_keep_alive_timeout

Setter for timeout span for keep-alive handling. We need an explizit setter because a single setter/getter function could not distinguish between called as getter and called to set undef.

@param int - timeout span for keep-alive handling

@return new value of keep-alive timeout

keep_alive_timeout

Getter/Setter for timeout span for keep-alive handling. If you need to set the timeout to an undefined value please use set_keep_alive_timeout.

@optparam int - timeout span for keep-alive handling

@return (new) value of keep-alive timeout

test_type

Setter and getter for test_type. This element is used to signal different test_type variants like ssh or SimNow.

get_state_config

Returns a hash structure suitable for feeding it into

skip_install

Setter and getter for skip_install. This element is used to signal tests without any installer at all.

AUTHOR

AMD OSRC Tapper Team, <tapper at amd64.org>

BUGS

None.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Tapper

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2008-2011 AMD OSRC Tapper Team, all rights reserved.

This program is released under the following license: freebsd

AUTHORS

  • AMD OSRC Tapper Team <tapper@amd64.org>

  • Tapper Team <tapper-ops@amazon.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..

This is free software, licensed under:

The (two-clause) FreeBSD License