Documentation ¶
Overview ¶
Package driver implements drivers to execute tests.
Package driver implements test drivers for Tast and Autotest tests.
Package driver implements drivers to execute tests.
Package driver implements drivers to execute tests.
Package driver implements drivers to execute tests.
Package driver implements drivers to execute tests.
Package driver implements drivers to execute tests.
Package driver implements drivers to execute tests.
Package driver implements drivers to execute tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrosierDriver ¶
type CrosierDriver struct {
// contains filtered or unexported fields
}
CrosierDriver runs gtest and report its results.
func NewCrosierDriver ¶
func NewCrosierDriver(logger *log.Logger) *CrosierDriver
NewCrosierDriver creates a new driver to run tests.
func (*CrosierDriver) Name ¶
func (td *CrosierDriver) Name() string
Name returns the name of the driver.
func (*CrosierDriver) RunTests ¶
func (td *CrosierDriver) RunTests(ctx context.Context, resultsDir string, req *api.CrosTestRequest, tlwAddr string, tests []*api.TestCaseMetadata) (*api.CrosTestResponse, error)
RunTests drives a test framework to execute tests.
type Driver ¶
type Driver interface { // RunTests drives a test framework to execute tests. RunTests(ctx context.Context, resultsDir string, req *api.CrosTestRequest, tlwAddr string, tests []*api.TestCaseMetadata) (*api.CrosTestResponse, error) // Name returns the name of the driver. Name() string }
Driver provides common interface to execute Tast and Autotest.
type GtestDriver ¶
type GtestDriver struct {
// contains filtered or unexported fields
}
GtestDriver runs gtest and report its results.
func NewGtestDriver ¶
func NewGtestDriver(logger *log.Logger) *GtestDriver
NewGtestDriver creates a new driver to run tests.
func (*GtestDriver) Name ¶
func (td *GtestDriver) Name() string
Name returns the name of the driver.
func (*GtestDriver) RunTests ¶
func (td *GtestDriver) RunTests(ctx context.Context, resultsDir string, req *api.CrosTestRequest, tlwAddr string, tests []*api.TestCaseMetadata) (*api.CrosTestResponse, error)
RunTests drives a test framework to execute tests.
type Labels ¶
type Labels struct {
AutotestHostInfoLabels string
}
Labels contains AutotestHostInfoLabels Note, the name is intentionally `AutotestHostInfoLabels` as that is a key string for parsing.
type MoblyTestDriver ¶
type MoblyTestDriver struct {
// contains filtered or unexported fields
}
MoblyTestDriver runs mobly and report its results.
func NewMoblyDriver ¶
func NewMoblyDriver(logger *log.Logger) *MoblyTestDriver
NewMoblyTestDriver creates a new driver to run tests.
func (*MoblyTestDriver) Name ¶
func (td *MoblyTestDriver) Name() string
Name returns the name of the driver.
func (*MoblyTestDriver) RunTests ¶
func (td *MoblyTestDriver) RunTests(ctx context.Context, resultsDir string, req *api.CrosTestRequest, tlwAddr string, tests []*api.TestCaseMetadata) (*api.CrosTestResponse, error)
RunTests drives a test framework to execute tests.
type TastDriver ¶
type TastDriver struct {
// contains filtered or unexported fields
}
TastDriver runs tast and report its results.
func NewTastDriver ¶
func NewTastDriver(logger *log.Logger) *TastDriver
NewTastDriver creates a new driver to run tast tests.
func (*TastDriver) RunTests ¶
func (td *TastDriver) RunTests(ctx context.Context, resultsDir string, req *api.CrosTestRequest, tlwAddr string, tests []*api.TestCaseMetadata) (*api.CrosTestResponse, error)
RunTests drives a test framework to execute tests.
type TautoDriver ¶
type TautoDriver struct {
// contains filtered or unexported fields
}
TautoDriver runs Tauto and report its results.
func NewTautoDriver ¶
func NewTautoDriver(logger *log.Logger) *TautoDriver
NewTautoDriver creates a new driver to run tests.
func (*TautoDriver) Name ¶
func (td *TautoDriver) Name() string
Name returns the name of the driver.
func (*TautoDriver) RunTests ¶
func (td *TautoDriver) RunTests(ctx context.Context, resultsDir string, req *api.CrosTestRequest, tlwAddr string, tests []*api.TestCaseMetadata) (*api.CrosTestResponse, error)
RunTests drives a test framework to execute tests.