other

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvBuildStep states for what a fuzz test is build.
	// e.g. "coverage", "fuzzing"
	EnvBuildStep string = "CIFUZZ_BUILD_STEP"

	// EnvBuildLocation states the path of the executable.
	// Default is identical with FUZZ_TEST.
	EnvBuildLocation string = "CIFUZZ_BUILD_LOCATION"

	// EnvCommand holds the name of the command cifuzz was called with.
	// e.g. "run", "bundle", "remote-run"
	EnvCommand string = "CIFUZZ_COMMAND"

	// EnvFuzzTest holds the name of the fuzz test.
	EnvFuzzTest string = "FUZZ_TEST"

	// EnvFuzzTestCFlags hold the CFLAGS used for building the fuzz test.
	EnvFuzzTestCFlags string = "FUZZ_TEST_CFLAGS"

	// EnvFuzzTestCXXFlags hold the CXXFLAGS used for building the fuzz test.
	EnvFuzzTestCXXFlags string = "FUZZ_TEST_CXXFLAGS"

	// EnvFuzzTestLDFlags hold the LDFLAGS used for building the fuzz test.
	EnvFuzzTestLDFlags string = "FUZZ_TEST_LDFLAGS"
)

Warning: Changing these will lead to a breaking change!

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	*BuilderOptions
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(opts *BuilderOptions) (*Builder, error)

func (*Builder) Build

func (b *Builder) Build(fuzzTest string) (*build.Result, error)

Build builds the specified fuzz test via the user-specified build command

func (*Builder) Clean added in v0.20.0

func (b *Builder) Clean() error

Clean cleans the project's build artifacts user-specified build command.

type BuilderOptions

type BuilderOptions struct {
	ProjectDir   string
	BuildCommand string
	CleanCommand string
	Sanitizers   []string

	RunfilesFinder runfiles.RunfilesFinder
	Stdout         io.Writer
	Stderr         io.Writer
}

func (*BuilderOptions) Validate added in v0.5.0

func (opts *BuilderOptions) Validate() error

Jump to

Keyboard shortcuts

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