testrunner

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const CmdName = "test-runner"

Variables

This section is empty.

Functions

func WithFinalState added in v0.21.0

func WithFinalState(st llb.State, opts ...ValidationOpt) llb.StateOption

WithFinalState returns a state option which takes as input a potentially modified state and returns the original unmodified state. This makes sure that any changes made during test steps are discarded but makes sure there is a dependency on the intermediate state so buildkit will execute it.

NOTE: This is a hack to work around the fact that buildkit does not currently have a proper way to express "run this for validation only".

func WithTests added in v0.21.0

func WithTests(target string, sOpt dalec.SourceOpts, deps llb.StateOption, tests []*dalec.TestSpec, opts ...ValidationOpt) llb.StateOption

Types

type Runner added in v0.21.0

type Runner struct{}

func (*Runner) Cmd added in v0.21.0

func (tr *Runner) Cmd(ctx context.Context, args []string)

type ValidationInfo added in v0.21.0

type ValidationInfo struct {
	Frontend    *llb.State
	Constraints []llb.ConstraintsOpt
	ExtraOpts   []llb.RunOption
}

func (*ValidationInfo) SetConstraintsOption added in v0.21.0

func (i *ValidationInfo) SetConstraintsOption(c *llb.Constraints)

func (*ValidationInfo) SetRunOption added in v0.21.0

func (i *ValidationInfo) SetRunOption(ei *llb.ExecInfo)

type ValidationOpt added in v0.21.0

type ValidationOpt func(*ValidationInfo)

func ValidateWithMount added in v0.21.0

func ValidateWithMount(sOpt dalec.SourceOpts, mnt dalec.SourceMount, opts ...llb.ConstraintsOpt) ValidationOpt

func WithConstraints added in v0.21.0

func WithConstraints(opts ...llb.ConstraintsOpt) ValidationOpt

Jump to

Keyboard shortcuts

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