NAME
Tapper::MCP::Config - Object for cleaner API of handling mcp_info
SYNOPSIS
use Tapper::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
is_simnow
Setter and getter for is_simnow
get_state_config
Returns a hash structure suitable for feeding it into
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