package lib

import "gvisor.dev/gvisor/test/runtimes/proctor/lib"

Package lib contains proctor functions.

Index

Functions

func PauseAndReap

func PauseAndReap()

PauseAndReap is like init. It runs forever and reaps any children.

func Search(root string, testFilter *regexp.Regexp) ([]string, error)

Search is a helper function to find tests in the given directory that match the regex.

Types

type TestRunner

type TestRunner interface {
	// ListTests returns a string slice of tests available to run.
	ListTests() ([]string, error)

	// TestCmds returns a slice of *exec.Cmd that will run the given tests.
	// There is no correlation between the number of exec.Cmds returned and the
	// number of tests. It could return one command to run all tests or a few
	// commands that collectively run all.
	TestCmds(tests []string) []*exec.Cmd
}

TestRunner is an interface that must be implemented for each runtime integrated with proctor.

func TestRunnerForRuntime

func TestRunnerForRuntime(runtime string) (TestRunner, error)

TestRunnerForRuntime returns a new TestRunner for the given runtime.

Source Files

go.go java.go lib.go nodejs.go php.go python.go

Version
v0.0.0-20250702182429-85e76111eb28 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
22 minutes ago

Tools for package owners.