aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist/test.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2023-05-10 14:28:30 -0400
committerAustin Clements <austin@google.com>2023-05-19 01:37:32 +0000
commit18ffa7185d42427dbdc0144956fece6c2b54b27a (patch)
treee5f0d5310798f5eefbbc2b534ad211f183632ae6 /src/cmd/dist/test.go
parenta674ab1961ca75d902ebbdf0a3d363501fd017ae (diff)
downloadgo-18ffa7185d42427dbdc0144956fece6c2b54b27a.tar.gz
go-18ffa7185d42427dbdc0144956fece6c2b54b27a.zip
cmd/dist: let several cgo tests run as regular cmd tests
Several cgo tests no longer have any special conditions, so they can just be normal cmd tests. This brings dist's "go_test:.*" tests much closer to what "go test std cmd" runs. Change-Id: I4d09f60628a41081e97e6b6e7dd0d93df47a65bb Reviewed-on: https://go-review.googlesource.com/c/go/+/495919 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/dist/test.go')
-rw-r--r--src/cmd/dist/test.go31
1 files changed, 3 insertions, 28 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index 9fed4b9e20..132542cde1 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -577,21 +577,9 @@ func (t *tester) registerTests() {
"cmd/internal/testdir": true, // Registered at the bottom with sharding.
// cgo tests are registered specially because they involve unusual build
// conditions and flags.
- "cmd/cgo/internal/teststdio": true,
- "cmd/cgo/internal/testlife": true,
- "cmd/cgo/internal/testfortran": true,
- "cmd/cgo/internal/test": true,
- "cmd/cgo/internal/testnocgo": true,
- "cmd/cgo/internal/testtls": true,
- "cmd/cgo/internal/testgodefs": true,
- "cmd/cgo/internal/testso": true,
- "cmd/cgo/internal/testsovar": true,
- "cmd/cgo/internal/testcarchive": true,
- "cmd/cgo/internal/testcshared": true,
- "cmd/cgo/internal/testshared": true,
- "cmd/cgo/internal/testplugin": true,
- "cmd/cgo/internal/testsanitizers": true,
- "cmd/cgo/internal/testerrors": true,
+ "cmd/cgo/internal/test": true,
+ "cmd/cgo/internal/testnocgo": true,
+ "cmd/cgo/internal/testtls": true,
}
// Fast path to avoid the ~1 second of `go list std cmd` when
@@ -847,23 +835,10 @@ func (t *tester) registerTests() {
}
const cgoHeading = "Testing cgo"
- t.registerTest("cgo_teststdio", cgoHeading, &goTest{pkg: "cmd/cgo/internal/teststdio", timeout: 5 * time.Minute})
- t.registerTest("cgo_testlife", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testlife", timeout: 5 * time.Minute})
- t.registerTest("cgo_testfortran", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testfortran", timeout: 5 * time.Minute})
if t.cgoEnabled {
t.registerCgoTests(cgoHeading)
}
- t.registerTest("cgo_testgodefs", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testgodefs", timeout: 5 * time.Minute})
- t.registerTest("cgo_testso", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testso", timeout: 600 * time.Second})
- t.registerTest("cgo_testsovar", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testsovar", timeout: 600 * time.Second})
- t.registerTest("cgo_testcarchive", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testcarchive", timeout: 5 * time.Minute})
- t.registerTest("cgo_testcshared", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testcshared", timeout: 5 * time.Minute})
- t.registerTest("cgo_testshared", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testshared", timeout: 600 * time.Second})
- t.registerTest("cgo_testplugin", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testplugin", timeout: 600 * time.Second})
- t.registerTest("cgo_testsanitizers", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testsanitizers", timeout: 5 * time.Minute})
- t.registerTest("cgo_errors", cgoHeading, &goTest{pkg: "cmd/cgo/internal/testerrors", timeout: 5 * time.Minute})
-
if goos != "android" && !t.iOS() {
// Only start multiple test dir shards on builders,
// where they get distributed to multiple machines.