starlark

package
v0.0.0-...-6e5b399 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Package starlark contains functions for evaluating Starlark test plans.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecTestPlan

func ExecTestPlan(
	ctx context.Context,
	planFilename string,
	buildMetadataList *buildpb.SystemImage_BuildMetadataList,
	configBundleList *payload.ConfigBundleList,
	templateParameters *plan.SourceTestPlan_TestPlanStarlarkFile_TemplateParameters,
) ([]*test_api_v1.HWTestPlan, []*test_api_v1.VMTestPlan, error)

ExecTestPlan executes the Starlark file planFilename.

Builtins are provided to planFilename to access buildMetadataList and configBundleList, and add [VM,HW]TestPlans to the output.

A loader is provided to load proto constructors.

If templateParameters is non-nil, builtins are provided to access its fields. This function does not check that the suite_name field is used properly to prevent name collisions, this is the responsibility of the caller when there are multiple templateParameters for the same file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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