vkbench

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package vkbench manipulates the test flow of running vkbench test binaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, outDir string, fixtValue interface{}, config Config) (resultErr error)

Run runs the vkbench binary. outDir specifies the directories to store the results. preValue is the structure given by precondition/fixture for test to access container/environment.

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 vkbench 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, fixtValue interface{}, outDir string) (string, error)

Run runs vkbench and returns the output.

func (*CrosConfig) SetUp

func (config *CrosConfig) SetUp(ctx context.Context) error

SetUp initializes the environment to run vkbench in ChromeOS.

func (*CrosConfig) TearDown

func (config *CrosConfig) TearDown(ctx context.Context) error

TearDown tears down the environment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL