Documentation
¶
Overview ¶
Package glbench manipulates the test flow of running glbench test binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportTemperature ¶
ReportTemperature set the current temperature to pv. If there's problem reading the value, it sets -1000 as the temperature.
func Run ¶
Run runs the glbench binary. outDir specifies the directories to store the results. preValue is the structure given by precondition/fixture for test to access container/environment.
func SaveFailLog ¶
SaveFailLog actively calls faillog.SaveToDir to save information for future debugging.
Types ¶
type Config ¶
type Config interface { SetUp(ctx context.Context) error Run(ctx context.Context, preValue interface{}, outDir string) (string, error) TearDown(ctx context.Context) error IsHasty() bool }
Config is the interface that setup/runs/teardown the glbench running environment.
type CrosConfig ¶
type CrosConfig struct {
Hasty bool // If hasty is true, glbench will run in hasty mode.
}
CrosConfig is the config to run in ChromeOS.
func (*CrosConfig) IsHasty ¶
func (config *CrosConfig) IsHasty() bool
IsHasty returns true if the given run should run in hasty mode.
func (*CrosConfig) Run ¶
func (config *CrosConfig) Run(ctx context.Context, preValue interface{}, outDir string) (string, error)
Run runs glbench and returns the output.
type CrostiniConfig ¶
type CrostiniConfig struct {
Hasty bool // If hasty is true, glbench will run in hasty mode.
}
CrostiniConfig is the config to run in Crostini.
func (*CrostiniConfig) IsHasty ¶
func (config *CrostiniConfig) IsHasty() bool
IsHasty returns true if the given run should run in hasty mode.
func (*CrostiniConfig) Run ¶
func (config *CrostiniConfig) Run(ctx context.Context, preValue interface{}, outDir string) (string, error)
Run runs glbench and returns the output.