progs

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestHelperMain

func TestHelperMain()

This is what tester (the binary) will execute.

Types

type Tester

type Tester struct {
	Cmd *exec.Cmd
	// contains filtered or unexported fields
}

Tester provides an interface to using tester from tests

func StartTester

func StartTester(t *testing.T, ctx context.Context) *Tester

func (*Tester) AddToCgroup

func (pt *Tester) AddToCgroup(t *testing.T, cgroupPath string)

func (*Tester) Command

func (pt *Tester) Command(s string) (string, error)

func (*Tester) Exec

func (pt *Tester) Exec(cmd string) (string, error)

Exec is very basic. tester will split arguments using strings.Fields() (see TesterMain), execute the comand, and return its combined output in stdout.

func (*Tester) Lseek

func (pt *Tester) Lseek(fd, off, whence int) (string, error)

func (*Tester) Ping

func (pt *Tester) Ping() error

func (*Tester) Stop

func (pt *Tester) Stop() error

Jump to

Keyboard shortcuts

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