Commit 983a490e authored by Hyang-Ah Hana Kim's avatar Hyang-Ah Hana Kim

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: default avatarDavid Crawshaw <crawshaw@golang.org>
parent b92a0a89
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment