mirror of
https://github.com/golang/go
synced 2024-11-22 11:04:40 -07:00
cmd/dist: let the three runtime -quick tests run simultaneously
For #65164
Change-Id: Ied19cebd113ef91c34f613cafbeb92a335d6420d
GitHub-Last-Rev: 8118be6e30
GitHub-Pull-Request: golang/go#65444
Reviewed-on: https://go-review.googlesource.com/c/go/+/560597
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
b8c76effd9
commit
1571c0b338
8
src/cmd/dist/test.go
vendored
8
src/cmd/dist/test.go
vendored
@ -705,11 +705,12 @@ func (t *tester) registerTests() {
|
||||
|
||||
// Runtime CPU tests.
|
||||
if !t.compileOnly && t.hasParallelism() {
|
||||
t.registerTest("GOMAXPROCS=2 runtime -cpu=1,2,4 -quick",
|
||||
for i := 1; i <= 4; i *= 2 {
|
||||
t.registerTest(fmt.Sprintf("GOMAXPROCS=2 runtime -cpu=%d -quick", i),
|
||||
&goTest{
|
||||
variant: "cpu124",
|
||||
variant: "cpu" + strconv.Itoa(i),
|
||||
timeout: 300 * time.Second,
|
||||
cpu: "1,2,4",
|
||||
cpu: strconv.Itoa(i),
|
||||
short: true,
|
||||
testFlags: []string{"-quick"},
|
||||
// We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code,
|
||||
@ -718,6 +719,7 @@ func (t *tester) registerTests() {
|
||||
pkg: "runtime",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// GOEXPERIMENT=rangefunc tests
|
||||
if !t.compileOnly {
|
||||
|
Loading…
Reference in New Issue
Block a user