diff options
Diffstat (limited to 'src/cmd/dist/test.go')
-rw-r--r-- | src/cmd/dist/test.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 3384149391..f16bf32bbf 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -574,7 +574,8 @@ func (t *tester) registerTests() { // registerStdTestSpecially tracks import paths in the standard library // whose test registration happens in a special way. registerStdTestSpecially := map[string]bool{ - "cmd/internal/testdir": true, // Registered at the bottom with sharding. + "runtime/internal/wasitest": true, // Registered at the bottom as a host test. + "cmd/internal/testdir": true, // Registered at the bottom with sharding. } // Fast path to avoid the ~1 second of `go list std cmd` when @@ -786,6 +787,16 @@ func (t *tester) registerTests() { t.registerCgoTests(cgoHeading) } + if goos == "wasip1" { + t.registerTest("wasip1 host tests", + &goTest{ + variant: "host", + pkg: "runtime/internal/wasitest", + timeout: 1 * time.Minute, + runOnHost: true, + }) + } + if goos != "android" && !t.iOS() { // Only start multiple test dir shards on builders, // where they get distributed to multiple machines. |