golang/src/internal/testenv
qiulaidongfeng 44e48c7e6c hash/maphash: parallel run test
This is a reapplication of CL 564576.

This reduces the go test hash/maphash time
by more than half.

After investigation it was confirmed that
the original CL would cause OOM when 32-bit machine.

This CL add testenv.ParallelOn64Bit for tests
that can be parallel on 64-bit machines,
it is not parallel on 32-bit machines,
because CL 564995 require the same API.

Change-Id: I1b7feaa07716cb3f55db4671653348fabf2396b0
GitHub-Last-Rev: 28277255587f6a1b92b9bf1848e1f53adaca64dc
GitHub-Pull-Request: golang/go#66359
Cq-Include-Trybots: luci.golang.try:gotip-linux-386-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/572195
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-03 16:41:38 +00:00
..
exec.go internal/testenv: use cmd.Environ in CleanCmdEnv 2023-10-27 17:53:23 +00:00
noopt.go all: use "noopt" build tag for checking optimization disabled 2022-08-17 04:02:17 +00:00
opt.go all: use "noopt" build tag for checking optimization disabled 2022-08-17 04:02:17 +00:00
testenv.go hash/maphash: parallel run test 2024-05-03 16:41:38 +00:00
testenv_notunix.go internal/testenv: probe for symlink on wasip1 2023-05-02 05:22:00 +00:00
testenv_notwin.go internal/testenv: probe for symlink on wasip1 2023-05-02 05:22:00 +00:00
testenv_test.go internal/testenv: support the LUCI mobile builders in tests 2024-01-25 23:12:44 +00:00
testenv_unix.go syscall: let ENOSYS, ENOTSUP and EOPNOTSUPP implement errors.ErrUnsupported 2023-03-16 17:44:01 +00:00
testenv_windows.go all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00