From 8bfb3045db81ca43612bcbc3ec929528ab9b43b2 Mon Sep 17 00:00:00 2001 From: Michael Munday Date: Sun, 20 Mar 2016 23:00:40 -0400 Subject: [PATCH] cmd/dist: enable -shared and external linking tests on s390x Change-Id: Iedd01ef3a9d2831cb55c53b7a1984e7e932f4249 Reviewed-on: https://go-review.googlesource.com/20932 Reviewed-by: Ian Lance Taylor --- src/cmd/dist/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 5406745ffc0..33c056d7978 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -681,7 +681,7 @@ func (t *tester) supportedBuildmode(mode string) bool { return false case "shared": switch pair { - case "linux-386", "linux-amd64", "linux-arm", "linux-arm64", "linux-ppc64le": + case "linux-386", "linux-amd64", "linux-arm", "linux-arm64", "linux-ppc64le", "linux-s390x": return true } return false @@ -725,7 +725,7 @@ func (t *tester) cgoTest(dt *distTest) error { case "android-arm", "dragonfly-386", "dragonfly-amd64", "freebsd-386", "freebsd-amd64", "freebsd-arm", - "linux-386", "linux-amd64", "linux-arm", + "linux-386", "linux-amd64", "linux-arm", "linux-s390x", "netbsd-386", "netbsd-amd64": cmd := t.addCmd(dt, "misc/cgo/test", "go", "test", "-ldflags", "-linkmode=external")