gputest

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gputest picks the Vulkan driver the GPU tests run on, from the environment: LYS_TEST_GPU=lavapipe runs them on Mesa's CPU driver (CI, no GPU needed), whose ICD file LYS_TEST_LAVAPIPE names (the dev shell sets it); any other value runs them on the host's device; unset, they run where a device is found and skip elsewhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled reports whether LYS_TEST_GPU asks for the GPU tests, which the suites outside package gpu run only then.

func Setup

func Setup(setenv func(key, value string) error) (required bool, err error)

Setup points the Vulkan loader, through setenv, at the driver LYS_TEST_GPU asks for, and at the validation layer when LYS_TEST_VULKAN_LAYERS names the directory of its manifest (the dev shell does): any error the layer finds stops the test with a SIGTRAP at the offending call, after logging it. required is whether a missing device fails the test rather than skipping it.

func SetupTest

func SetupTest(t testing.TB) (required bool, err error)

SetupTest is Setup for t alone, through t.Setenv.

Types

This section is empty.

Jump to

Keyboard shortcuts

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