Tapper::MCP::Config - Generate config for a certain test run
use Tapper::MCP::Config;
Parse a simnow precondition.
@param hash ref - config @param hash ref - simnow precondition
@return success - 0
@param hash ref - config @param hash ref - hint precondition
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
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 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
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
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
Handle precondition image. Make sure the appropriate opt-tapper package is installed if needed. Care for the root image being installed first.
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
Handle testprogram list precondition. Puts testprograms to config and internal information set.
Parse precondition autoinstall and change config accordingly.
Add installation configuration part to a given config hash.
@param hash reference - config to change
Create configuration to be used for installation on a given host.
@return success - config hash reference @return error - error string
Returns mcp_info attribute, no matter if its already set.
@return hash reference
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 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 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
AMD OSRC Tapper Team, <tapper at amd64.org>
<tapper at amd64.org>
None.
You can find documentation for this module with the perldoc command.
perldoc Tapper
Copyright 2008-2011 AMD OSRC Tapper Team, all rights reserved.
This program is released under the following license: freebsd
To install Tapper::MCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::MCP
CPAN shell
perl -MCPAN -e shell install Tapper::MCP
For more information on module installation, please visit the detailed CPAN module installation guide.