buildtest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildTest

type BuildTest struct {
	// contains filtered or unexported fields
}

BuildTest is a test that builds a component in an azldev project.

func NewBuildTest

func NewBuildTest(
	project projecttest.TestProject,
	componentName string,
	options ...projecttest.ProjectTestOption,
) *BuildTest

NewBuildTest creates a new BuildTest for the specified project and component name. Optional [projecttest.ProjectTestOption]s can be passed to configure the underlying project test, such as projecttest.WithTestDefaultConfigs to include the test default configs.

func (*BuildTest) Run

func (p *BuildTest) Run(t *testing.T) *BuildTestResults

Run runs the build test, returning results.

type BuildTestResults

type BuildTestResults struct {
	// contains filtered or unexported fields
}

BuildTestResults encapsulates the results of running a BuildTest.

func (*BuildTestResults) GetBuildOutputs

GetBuildOutputs returns the build outputs from the test results.

func (*BuildTestResults) GetRPMs

func (r *BuildTestResults) GetRPMs(t *testing.T) []*rpmlib.Package

GetRPMs returns the RPMs produced by the build test.

func (*BuildTestResults) GetSRPMs

func (r *BuildTestResults) GetSRPMs(t *testing.T) []*rpmlib.Package

GetSRPMs returns the SRPMs produced by the build test.

Jump to

Keyboard shortcuts

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