syzutils

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package syzutils contains functionality shared by tests that exercise syzcorpus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDmesg

func ClearDmesg(ctx context.Context, d *dut.DUT) error

ClearDmesg clears the dmesg log.

func CopyRepro

func CopyRepro(ctx context.Context, d *dut.DUT, localPath, remotePath string) error

CopyRepro copies a repro file to the DUT.

func ExtractCorpus

func ExtractCorpus(ctx context.Context, tastDir, dataPath string) error

ExtractCorpus unzips the zip file pointed to by dataPath into tastDir.

func FindDUTArch

func FindDUTArch(ctx context.Context, d *dut.DUT) (string, error)

FindDUTArch determines the DUT arch.

func LoadEnabledRepros

func LoadEnabledRepros(fpath string) (map[string]bool, error)

LoadEnabledRepros reads and returns a list of repros from the provided input filepath.

func MkdirRemote

func MkdirRemote(ctx context.Context, d *dut.DUT, path string) error

MkdirRemote creates a directory at path on the DUT.

func RmdirRemote

func RmdirRemote(ctx context.Context, d *dut.DUT, path string) error

RmdirRemote recursively removes the directory at path on the DUT.

func RunRepro

func RunRepro(ctx context.Context, d *dut.DUT, remotePath string, timeout time.Duration) ([]byte, error)

RunRepro runs the repro present at remotePath on the DUT with a specified timeout.

func WarningInDmesg

func WarningInDmesg(ctx context.Context, d *dut.DUT) ([]byte, error)

WarningInDmesg checks for an error or warning in the dmesg log. If an error or warning is found, the contents of the log are returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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