]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testplugin: speed up tests
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 21 Oct 2017 00:46:04 +0000 (20:46 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Sat, 21 Oct 2017 11:32:53 +0000 (11:32 +0000)
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 <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testplugin/test.bash

index dbc28b19aa242f46edf528d80cb8e23422af5fad..eed7fc451b3411f1ab9bcdb86a3f1a42cd243542 100755 (executable)
@@ -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