Documentation
¶
Index ¶
- Constants
- func CheckFilesCmd(args []string)
- func FilterStepError(err error) error
- func StepCmd(args []string)
- func WithFileChecks(frontend llb.State, test *dalec.TestSpec, outputPath string) llb.RunOption
- func WithTestStep(frontend llb.State, step *dalec.TestStep, index int, outputPath string) llb.RunOption
- type FileCheckErrResult
Constants ¶
const CheckFilesCmdName = "test-checkfiles"
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 ¶
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 ¶
WithFileChecks returns an llb.RunOption that checks the files specified in the test spec.
Types ¶
type FileCheckErrResult ¶
type FileCheckErrResult struct {
Filename string
StepIndex *int
Checks []*dalec.CheckOutputError
}