]> Cypherpunks repositories - gostls13.git/commit
test/codegen: mention in README that tests only run on Linux without -all_codegen
authorRuss Cox <rsc@golang.org>
Tue, 10 Mar 2020 17:31:15 +0000 (13:31 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 11 Mar 2020 16:17:08 +0000 (16:17 +0000)
commit801a9d9a0c32f0a8db43f145e71b53f11a02b7e2
tree11628bc8331f450862fcabb3591558a70cc50320
parent0e3ace42f5a06a2472662da08105d6c956f4eef1
test/codegen: mention in README that tests only run on Linux without -all_codegen

This took me a while to figure out. The relevant code is in
test/run.go (note the "linux" hard-coded strings):

var arch, subarch, os string
switch {
case archspec[2] != "": // 3 components: "linux/386/sse2"
os, arch, subarch = archspec[0], archspec[1][1:], archspec[2][1:]
case archspec[1] != "": // 2 components: "386/sse2"
os, arch, subarch = "linux", archspec[0], archspec[1][1:]
default: // 1 component: "386"
os, arch, subarch = "linux", archspec[0], ""
if arch == "wasm" {
os = "js"
}
}

Change-Id: I92ba280025d2072e17532a5e43cf1d676789c167
Reviewed-on: https://go-review.googlesource.com/c/go/+/222819
Reviewed-by: Keith Randall <khr@golang.org>
test/codegen/README