Documentation
¶
Overview ¶
Package testtools gives tests one policy for external tools (spirv-val, spirv-dis, dxc, ...), in the spirit of Go's internal/testenv.
Locally, a missing tool skips the check that needs it, with an explicit reason. In CI, NAGA_REQUIRE_TOOLS lists tools that must be present ("spirv-val,spirv-dis", or "all"): a missing listed tool fails the test, so a runner without the tool cannot report green while checking nothing.
Index ¶
Constants ¶
const ( InstallSPIRVTools = "install SPIRV-Tools, e.g. from the Vulkan SDK" InstallDXC = "install the Windows SDK or put dxc in PATH" )
Install hints shared by callers.
const EnvRequired = "NAGA_REQUIRE_TOOLS"
EnvRequired names the environment variable listing required tools.
Variables ¶
This section is empty.
Functions ¶
func Look ¶
Look returns the path of a tool the test cannot run without. If it is missing, the test fails when the tool is required and is skipped otherwise.
func Missing ¶
Missing reports a tool that a test-specific lookup could not find, with Look's policy: fail when required, skip otherwise.