package
1.23.0
Repository: https://github.com/shogo82148/std.git
Documentation: pkg.go.dev

# README

// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.

package scripttest

# Functions

AddToolChainConditions accepts a script.Cond map and adds into it a set of commonly used conditions for doing toolchains testing, including whether the platform supports cgo, a buildmode condition, support for GOEXPERIMENT testing, etc.
CachedExec returns a Condition that reports whether the PATH of the test binary itself (not the script's current environment) contains the named executable.
DefaultCmds returns a set of broadly useful script commands.
DefaultConds returns a set of broadly useful script conditions.
ReplaceGoToolInTestGoRoot replaces the go tool binary toolname with an alternate executable newtoolpath within a test GOROOT directory previously created by SetupTestGoRoot.
Run runs the script from the given filename starting at the given initial state.
RunTests kicks off one or more script-based tests using the specified engine, running all test files that match pattern.
RunToolScriptTest kicks off a set of script tests runs for a tool of some sort (compiler, linker, etc).
SetupTestGoRoot sets up a temporary GOROOT for use with script test execution.
Skip returns a sentinel error that causes Run to mark the test as skipped.

# Structs

ToolReplacement records the name of a tool to replace within a given GOROOT for script testing purposes.