summaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/run.bash b/src/run.bash
index a026b459c..538d4f6fe 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -74,9 +74,13 @@ go run $GOROOT/test/run.go - .
) || exit $?
[ "$CGO_ENABLED" != 1 ] ||
-[ "$GOHOSTOS" == openbsd ] || # issue 4878
(xcd ../misc/cgo/test
-go test
+go test -ldflags '-linkmode=auto'
+go test -ldflags '-linkmode=internal'
+case "$GOHOSTOS-$GOARCH" in
+darwin-386 | darwin-amd64 | freebsd-386 | freebsd-amd64 | linux-386 | linux-amd64 | netbsd-386 | netbsd-amd64 | openbsd-386 | openbsd-amd64)
+ go test -ldflags '-linkmode=external'
+esac
) || exit $?
[ "$CGO_ENABLED" != 1 ] ||
@@ -113,9 +117,12 @@ go build ../misc/dashboard/builder ../misc/goplay
./timing.sh -test
) || exit $?
+[ "$GOOS" == openbsd ] || # golang.org/issue/5057
+(
echo
echo '#' ../test/bench/go1
go test ../test/bench/go1
+) || exit $?
(xcd ../test
unset GOMAXPROCS