Documentation
¶
Overview ¶
Package commonconfigs defines common configurations.
Index ¶
Constants ¶
const ( HwTestExecutionConfigType interfaces.ConfigType = "HwTest" PreLocalTestExecutionConfigType interfaces.ConfigType = "PreLocalTest" LocalTestExecutionConfigType interfaces.ConfigType = "LocalTest" // For unit tests purposes only UnSupportedTestExecutionConfigType interfaces.ConfigType = "UnsupportedTest" )
Config types
Variables ¶
This section is empty.
Functions ¶
func NewContainerConfig ¶
func NewContainerConfig( ctr *crostoolrunner.CrosToolRunner, containerImagesMap map[string]*api.ContainerImageInfo, cqRun bool) interfaces.ContainerConfigInterface
Types ¶
type CmdExecutionConfig ¶
type CmdExecutionConfig struct { *interfaces.AbstractTestExecutionConfig CommandConfig interfaces.CommandConfigInterface StateKeeper interfaces.StateKeeperInterface Configs *Configs // contains filtered or unexported fields }
CmdExecutionConfig represents the configuration for any test execution.
func NewCmdExecutionConfig ¶
func NewCmdExecutionConfig( configType interfaces.ConfigType, cmdConfig interfaces.CommandConfigInterface, ski interfaces.StateKeeperInterface) *CmdExecutionConfig
type CommandExecutorPairedConfig ¶
type CommandExecutorPairedConfig struct { CommandType interfaces.CommandType ExecutorType interfaces.ExecutorType // contains filtered or unexported fields }
CommandExecutorPairedConfig represents command and executor pair
func (*CommandExecutorPairedConfig) IsRequired ¶
func (cepc *CommandExecutorPairedConfig) IsRequired() bool
IsRequired returns whether the command is required.
func (*CommandExecutorPairedConfig) ToString ¶
func (cepc *CommandExecutorPairedConfig) ToString() string
ToString returns string representation of the object.
func (*CommandExecutorPairedConfig) WithRequired ¶
func (cepc *CommandExecutorPairedConfig) WithRequired(required bool) *CommandExecutorPairedConfig
WithRequired returns back the CommandExecutorPairedConfig with required set.
type Configs ¶
type Configs struct { MainConfigs []*CommandExecutorPairedConfig CleanupConfigs []*CommandExecutorPairedConfig }
Configs represents main and cleanup configs. Cleanup configs are executed if any error occurs with main config execution. If any command of cleanup config is already executed, they will be skipped during cleanup.
type ContainerConfig ¶
type ContainerConfig struct { Ctr *crostoolrunner.CrosToolRunner ContainerImagesMap map[string]*api.ContainerImageInfo // contains filtered or unexported fields }
ContainerConfig represents Cft container configs.
func (*ContainerConfig) GetContainer ¶
func (cfg *ContainerConfig) GetContainer(contType interfaces.ContainerType) (interfaces.ContainerInterface, error)
GetContainer returns the concrete container based on provided container type.