From a753a9ed54c7ead93e56e5b183b743877b7695a6 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Thu, 4 Dec 2025 14:21:44 -0500 Subject: 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 Reviewed-by: Alan Donovan Reviewed-by: Michael Matloob LUCI-TryBot-Result: Go LUCI --- src/cmd/internal/script/scripttest/run.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cmd/internal/script/scripttest') 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, "=") -- cgit v1.3