instance

package
v0.0.0-...-8742a2b Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package instance provides helper functions for creation of temporal instances used for testing of images, patches and bisection.

Index

Constants

This section is empty.

Variables

View Source
var MakeBin = func() string {
	if runtime.GOOS == "freebsd" || runtime.GOOS == "openbsd" {
		return "gmake"
	}
	return "make"
}()

Functions

func ExecprogCmd

func ExecprogCmd(execprog, executor, OS, arch, sandbox string, repeat, threaded, collide bool,
	procs, faultCall, faultNth int, progFile string) string

func FuzzerCmd

func FuzzerCmd(fuzzer, executor, name, OS, arch, fwdAddr, sandbox string, procs, verbosity int,
	cover, debug, test, runtest bool) string

func OldFuzzerCmd

func OldFuzzerCmd(fuzzer, executor, name, OS, arch, fwdAddr, sandbox string, procs int, cover, test bool) string

func OverrideVMCount

func OverrideVMCount(cfg *mgrconfig.Config, n int) error

func SetConfigImage

func SetConfigImage(cfg *mgrconfig.Config, imageDir string, reliable bool) error

Types

type CrashError

type CrashError struct {
	Report *report.Report
}

func (*CrashError) Error

func (err *CrashError) Error() string

type Env

type Env interface {
	BuildSyzkaller(string, string) error
	BuildKernel(string, string, string, string, []byte) (string, string, error)
	Test(numVMs int, reproSyz, reproOpts, reproC []byte) ([]error, error)
}

func NewEnv

func NewEnv(cfg *mgrconfig.Config) (Env, error)

type TestError

type TestError struct {
	Boot   bool // says if the error happened during booting or during instance testing
	Title  string
	Output []byte
	Report *report.Report
}

func (*TestError) Error

func (err *TestError) Error() string

Jump to

Keyboard shortcuts

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