NAME
Tapper::MCP::Config - Generate config for a certain test run
SYNOPSIS
use Tapper::MCP::Config;
FUNCTIONS
parse_simnow_preconditions
Parse a simnow precondition.
@param hash ref - config @param hash ref - simnow precondition
@return success - 0
parse_simnow_preconditions
Parse a simnow precondition.
@param hash ref - config @param hash ref - hint precondition
@return success - 0
add_tapper_package_for_guest
Add opt tapper package to guest
@param hash ref - config @param hash ref - guest @param int - guest number
@return success - new config (hash ref) @return error - error string
handle_guest_tests
Create guest PRC config based on guest tests.
@param hash ref - old config @param hash ref - guest description @param int - guest number
@return success - new config hash ref @return error - error string
parse_virt_host
Parse host definition of a virt precondition and change config accordingly
@param hash ref - old config @param hash ref - virt precondition
@return hash ref - new config
parse_virt_preconditions
Unpack a precondition virt entry into images, packages and files to be installed for this virt package to work.
@param hash ref - config hash to which virt precondition should be added @param hash ref - precondition as hash
@return success - hash reference containing the new config @return error - error string
parse_grub
Handle precondition grub. Even though a preconfigured grub config is provided as precondition, it needs to get a special place in the Yaml file. Otherwise it would be hard to find for the installer process generating the grub config file.
@param hash ref - config to change @param hash ref - precondition as hash
@return success - config hash @return error - error string
parse_reboot
Handle precondition grub. Even though a preconfigured grub config is provided as precondition, it needs to get a special place in the Yaml file. Otherwise it would be hard to find for the installer process generating the grub config file.
@param hash ref - config to change @param hash ref - precondition as hash
@return success - config hash @return error - error string
parse_image_precondition
Handle precondition image. Make sure the appropriate opt-tapper package is installed if needed. Care for the root image being installed first.
@param hash ref - config to change @param hash ref - precondition as hash
@return success - config hash @return error - error string
parse_testprogram
Handle precondition testprogram. Make sure testprogram is correctly to config and internal information set.
@param hash ref - config to change @param hash ref - precondition as hash @param int - prc_number, optional
@return success - config hash @return error - error string
parse_testprogram_list
Handle testprogram list precondition. Puts testprograms to config and internal information set.
@param hash ref - config to change @param hash ref - precondition as hash @param int - prc_number, optional
@return success - config hash @return error - error string
parse_autoinstall
Parse precondition autoinstall and change config accordingly.
@param hash ref - config to change @param hash ref - precondition as hash
@return success - config hash @return error - error string
get_install_config
Add installation configuration part to a given config hash.
@param hash reference - config to change
@return success - config hash @return error - error string
get_common_config
Create configuration to be used for installation on a given host.
@return success - config hash reference @return error - error string
get_mcp_info
Returns mcp_info attribute, no matter if its already set.
@return hash reference
get_test_config
Returns a an array of configs for all PRCs of a given test. All information are taken from the MCP::Info attribute of the object so its only save to call this function after create_config which configures this attribute.
@return success - config array (array ref) @return error - error string
create_config
Create a configuration for the current status of the test machine. All config information are taken from the database based upon the given testrun id.
@return success - config (hash reference) @return error - error string
write_config
Write the config created before into appropriate YAML file.
@param string - config (hash reference) @param string - output file name, in absolut form or relative to configured localdata_path
@return success - 0 @return error - error string
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