From: David Crawshaw Date: Sat, 21 Oct 2017 00:46:04 +0000 (-0400) Subject: misc/cgo/testplugin: speed up tests X-Git-Tag: go1.10beta1~636 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a31e0a4aacf14be0708aea1f60f25e3607813d2c;p=gostls13.git misc/cgo/testplugin: speed up tests Running test.bash goes from 30s to 10s on a linux workstation. (The coming pkg cache work in cmd/go would presumably do the same thing, but this makes all.bash faster today.) Change-Id: I8c9b0400071a412fce55b386e939906bb1c1d84d Reviewed-on: https://go-review.googlesource.com/72330 Run-TryBot: David Crawshaw TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/misc/cgo/testplugin/test.bash b/misc/cgo/testplugin/test.bash index dbc28b19aa..eed7fc451b 100755 --- a/misc/cgo/testplugin/test.bash +++ b/misc/cgo/testplugin/test.bash @@ -23,7 +23,7 @@ trap cleanup EXIT rm -rf pkg sub mkdir sub -GOPATH=$(pwd) go build -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin1 +GOPATH=$(pwd) go build -i -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin1 GOPATH=$(pwd) go build -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin2 cp plugin2.so plugin2-dup.so GOPATH=$(pwd)/altpath go build -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin-mismatch