instance

package
v0.0.0-...-f6f6578 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT, Apache-2.0 Imports: 18 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 DriverCmd

func DriverCmd(OS string) string

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, bpcov, 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