mirror of
https://github.com/golang/go
synced 2024-11-05 15:16:11 -07:00
cmd/dist: include misc/cgo/testcshared test for linux/amd64
Change-Id: Ia2c0c617df523482ba1a25b7492267eb80f0819a Reviewed-on: https://go-review.googlesource.com/9033 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
b92a0a8969
commit
983a490ee9
6
src/cmd/dist/test.go
vendored
6
src/cmd/dist/test.go
vendored
@ -275,6 +275,9 @@ func (t *tester) registerTests() {
|
||||
if t.buildmode("c-archive") {
|
||||
t.registerTest("testcarchive", "../misc/cgo/testcarchive", "./test.bash")
|
||||
}
|
||||
if t.buildmode("c-shared") {
|
||||
t.registerTest("testcshared", "../misc/cgo/testcshared", "./test.bash")
|
||||
}
|
||||
if t.gohostos == "linux" && t.goarch == "amd64" {
|
||||
t.registerTest("testasan", "../misc/cgo/testasan", "go", "run", "main.go")
|
||||
}
|
||||
@ -383,6 +386,9 @@ func (t *tester) buildmode(mode string) bool {
|
||||
default:
|
||||
return false
|
||||
}
|
||||
case "c-shared":
|
||||
// TODO(hyangah): add linux/386.
|
||||
return t.goos == "linux" && t.goarch == "amd64"
|
||||
default:
|
||||
log.Fatal("internal error: unknown buildmode %s", mode)
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user