diff options
| author | Michael Matloob <matloob@golang.org> | 2025-12-04 14:21:44 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-04 15:05:53 -0800 |
| commit | a753a9ed54c7ead93e56e5b183b743877b7695a6 (patch) | |
| tree | b98a686dbfdb86f1e7d06ab4be37a29ad98f6822 /src/cmd/internal/script/scripttest | |
| parent | 1681c3b67fe5f95377fd33b98dc1f7007cf28acf (diff) | |
| download | go-a753a9ed54c7ead93e56e5b183b743877b7695a6.tar.xz | |
cmd/internal/fuzztest: move fuzz tests out of cmd/go test suite
They are very slow: taking them out of the cmd/go test suite makes the
go command tests go from about 80 seconds to run on my system, to about
50 seconds to run.
Change-Id: I19b5c252bd2b6e6d64821cada961ddaa6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/726960
Auto-Submit: Michael Matloob <matloob@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Matloob <matloob@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/internal/script/scripttest')
| -rw-r--r-- | src/cmd/internal/script/scripttest/run.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/internal/script/scripttest/run.go b/src/cmd/internal/script/scripttest/run.go index 8dff13e22e..2a909f656d 100644 --- a/src/cmd/internal/script/scripttest/run.go +++ b/src/cmd/internal/script/scripttest/run.go @@ -137,6 +137,9 @@ func RunToolScriptTest(t *testing.T, repls []ToolReplacement, scriptsdir string, env := os.Environ() prependToPath(env, filepath.Join(tgr, "bin")) env = setenv(env, "GOROOT", tgr) + // GOOS and GOARCH are expected to be set by the toolchain script conditions. + env = setenv(env, "GOOS", runtime.GOOS) + env = setenv(env, "GOARCH", runtime.GOARCH) for _, repl := range repls { // consistency check chunks := strings.Split(repl.EnvVar, "=") |
