testrunner

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CheckFilesCmdName = "test-checkfiles"
View Source
const (
	StepRunnerCmdName = "test-steprunner"
)

Variables

This section is empty.

Functions

func CheckFilesCmd

func CheckFilesCmd(args []string)

CheckFilesCmd is the entrypoint for the file checking subcommand. It reads the file checks from the provided file path (first argument) and executes them, writing output to os.Stdout and os.Stderr.

This should only be called from inside a container where the test is meant to run.

func FilterStepError

func FilterStepError(err error) error

FilterStepError removes extraneous/internal context from errors caused by a test step command returning a non-zero exit code.

func StepCmd

func StepCmd(args []string)

StepCmd is the entrypoint for the test step runner subcommand. It reads the test step from the provided file path (first argument) and executes it, writing output to os.Stdout and os.Stderr.

This should only be called from inside a container where the test is meant to run.

func WithFileChecks

func WithFileChecks(frontend llb.State, test *dalec.TestSpec, outputPath string) llb.RunOption

WithFileChecks returns an llb.RunOption that checks the files specified in the test spec.

func WithTestStep

func WithTestStep(frontend llb.State, step *dalec.TestStep, index int, outputPath string) llb.RunOption

WithRunStep returns an llb.RunOption that executes the provided test step.

Types

type FileCheckErrResult

type FileCheckErrResult struct {
	Filename  string
	StepIndex *int
	Checks    []*dalec.CheckOutputError
}

Jump to

Keyboard shortcuts

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