runtest

package
v0.0.0-...-a343a40 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package runtest is a driver for end-to-end testing of syzkaller programs. It tests program execution via both executor and csource, with different sandboxes and execution modes (threaded, repeated, etc). It can run test OS programs locally via run_test.go and all other real OS programs via tools/syz-runtest which uses manager config to wind up VMs. Test programs are located in sys/*/test/* files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTest

func RunTest(req *RunRequest, executor string)

Types

type Context

type Context struct {
	Dir          string
	Target       *prog.Target
	Features     *host.Features
	EnabledCalls map[string]map[*prog.Syscall]bool
	Requests     chan *RunRequest
	LogFunc      func(text string)
}

func (*Context) Run

func (ctx *Context) Run() error

type RunRequest

type RunRequest struct {
	Bin    string
	P      *prog.Prog
	Cfg    *ipc.Config
	Opts   *ipc.ExecOpts
	Repeat int

	Done   chan struct{}
	Output []byte
	Info   [][]ipc.CallInfo
	Err    error
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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