Documentation ¶
Overview ¶
Copyright 2021 The ChromiumOS Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2021 The ChromiumOS Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
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.