autotest

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package autotest provides a Go API for interacting with Autotest.

This package provides a very low level API with no business logic. This is to keep the bug surface small and keep the business logic clearly separate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditTaskCommand

func AuditTaskCommand(c Config, cmd *AuditTaskArgs) *exec.Cmd

AuditTaskCommand returns the Cmd struct to execute DUT audit script with the given arguments.

func AutoservCommand

func AutoservCommand(c Config, cmd *AutoservArgs) *exec.Cmd

AutoservCommand returns the Cmd struct to execute autoserv with the given arguments.

func DutPreparationCommand

func DutPreparationCommand(c Config, cmd *DutPreparationArgs) *exec.Cmd

DutPreparationCommand returns the Cmd struct to execute DUT preparation script with the given arguments.

func ParseCommand

func ParseCommand(c Config, cmd *ParseArgs) *exec.Cmd

ParseCommand returns the Cmd struct to execute tko/parse with the given arguments.

func WriteKeyvals

func WriteKeyvals(w io.Writer, m map[string]string) error

WriteKeyvals writes a map of keyvals in the format Autotest expects.

Types

type AuditTaskArgs

type AuditTaskArgs struct {
	Hostname     string
	ResultsDir   string
	HostInfoFile string
	Actions      []string
}

AuditTaskArgs contains arguments for AdminAudit task.

type AutoservArgs

type AutoservArgs struct {
	// Args is split with shlex.split by autoserv.
	Args               string
	Cleanup            bool
	ClientTest         bool
	CollectCrashinfo   bool
	ControlName        string
	ExecutionTag       string
	HostInfoSubDir     string
	Hosts              []string
	JobLabels          []string
	JobName            string
	JobOwner           string
	Lab                bool
	LocalOnlyHostInfo  bool
	NoTee              bool
	ParentJobID        int
	Provision          bool
	Repair             bool
	RequireSSP         bool
	Reset              bool
	ResultsDir         string
	TestSourceBuild    string
	UseExistingResults bool
	Verbose            bool
	Verify             bool
	VerifyJobRepoURL   bool
	WritePidfile       bool

	ControlFile string
}

AutoservArgs is the arguments for creating an autoserv command.

type Config

type Config struct {
	AutotestDir string
	LabpackDir  string
}

Config describes where the Autotest directory is.

type DutPreparationArgs

type DutPreparationArgs struct {
	Hostname     string
	ResultsDir   string
	HostInfoFile string
	Actions      []string
}

DutPreparationArgs contains arguments for DutPreparationCommand.

type ParseArgs

type ParseArgs struct {
	Level          int
	RecordDuration bool
	Reparse        bool
	SingleDir      bool
	SuiteReport    bool
	WritePidfile   bool

	ResultsDir string
}

ParseArgs contains arguments for ParseCommand.

Directories

Path Synopsis
Package atutil provides a higher level Autotest interface than the autotest package.
Package atutil provides a higher level Autotest interface than the autotest package.
Package dutprep contains functions helpful in interaction with the Autotest DUT preparation tool.
Package dutprep contains functions helpful in interaction with the Autotest DUT preparation tool.

Jump to

Keyboard shortcuts

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