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: 6 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 AutoservCommand

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

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

func ParseCommand

func ParseCommand(c Config, resultsDir string) *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 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
	NoTee              bool
	ParentJobID        int
	Provision          bool
	Repair             bool
	RequireSSP         bool
	Reset              bool
	ResultsDir         string
	SSPBaseImageName   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
}

Config describes where the Autotest directory is.

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.

Jump to

Keyboard shortcuts

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