testutil

package
v0.0.0-...-81e640e Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package testutil contains helpers to build sample C binaries for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSample

func RunSample(t *testing.T, name SampleName) (*exec.Cmd, error)

RunSample executes the sample binary and returns the command. Cleanup is configured automatically

Types

type SampleName

type SampleName string

SampleName represents the name of the sample binary.

const (
	// CudaSample is the sample binary that uses CUDA.
	CudaSample SampleName = "cudasample"
)

Jump to

Keyboard shortcuts

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