From 68b204a6392238234067d67a039ad049993f8e22 Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Fri, 2 Feb 2024 14:19:35 +0800 Subject: [PATCH] cmd/dist: let the three runtime -quick tests run simultaneously For #65164 Change-Id: Id797a402fffd70643ebaae74f4450dacfa2b6dd3 --- src/cmd/dist/test.go | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index fa6a0dd84d41e9..f63d552e5ff861 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -705,18 +705,45 @@ func (t *tester) registerTests() { // Runtime CPU tests. if !t.compileOnly && t.hasParallelism() { - t.registerTest("GOMAXPROCS=2 runtime -cpu=1,2,4 -quick", + t.registerTest("GOMAXPROCS=2 runtime -cpu=1 -quick", &goTest{ - variant: "cpu124", + variant: "cpu1", timeout: 300 * time.Second, - cpu: "1,2,4", + cpu: "1", short: true, testFlags: []string{"-quick"}, // We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code, // creation of first goroutines and first garbage collections in the parallel setting. env: []string{"GOMAXPROCS=2"}, pkg: "runtime", - }) + }, + ) + t.registerTest("GOMAXPROCS=2 runtime -cpu=2 -quick", + &goTest{ + variant: "cpu2", + timeout: 300 * time.Second, + cpu: "2", + short: true, + testFlags: []string{"-quick"}, + // We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code, + // creation of first goroutines and first garbage collections in the parallel setting. + env: []string{"GOMAXPROCS=2"}, + pkg: "runtime", + }, + ) + t.registerTest("GOMAXPROCS=2 runtime -cpu=4 -quick", + &goTest{ + variant: "cpu4", + timeout: 300 * time.Second, + cpu: "4", + short: true, + testFlags: []string{"-quick"}, + // We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code, + // creation of first goroutines and first garbage collections in the parallel setting. + env: []string{"GOMAXPROCS=2"}, + pkg: "runtime", + }, + ) } // GOEXPERIMENT=rangefunc tests