diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2015-01-07 20:10:32 -0800 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2015-01-08 04:35:23 +0000 |
commit | abb2aa20853d5589940076a582b44f2f98a775bb (patch) | |
tree | 5202d477ce74f9433b0aa775c6c6159d0dd4c910 /src/run.rc | |
parent | e16ab38dc9dd788a17b989484d32dca0ef643c45 (diff) | |
download | go-abb2aa20853d5589940076a582b44f2f98a775bb.tar.gz go-abb2aa20853d5589940076a582b44f2f98a775bb.zip |
build: add GOTESTONLY environment test for Plan 9's run.rc
$GOTESTONLY controls which set of tests gets run. Only "std" is
supported. This should bring the time of plan9 builder down
from 90 minutes to a maybe 10-15 minutes when running on GCE.
(Plan 9 has performance problems when running on GCE, and/or with the
os/exec package)
This is a temporary workaround for one builder. The other Plan 9
builders will continue to do full builds. The plan9 buidler will be
renamed plan9-386-gcepartial or something to indicate it's not running
the 'test/*' directory, or API tests. Go on Plan 9 has bigger problems
for now. This lets us get trybots going sooner including Plan 9,
without waiting 90+ minutes.
Update #9491
Change-Id: Ic505e9169c6b304ed4029b7bdfb77bb5c8fa8daa
Reviewed-on: https://go-review.googlesource.com/2522
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/run.rc')
-rwxr-xr-x | src/run.rc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/run.rc b/src/run.rc index 54286ac09d..8d2ce38a0e 100755 --- a/src/run.rc +++ b/src/run.rc @@ -32,6 +32,14 @@ echo '# Testing packages.' time go test std -short -timeout 240s echo +# Temporary GCE builder hack until Plan 9 on GCE is fast enough. +# See https://golang.org/issue/9491 +if(~ $GOTESTONLY std) { + echo + echo PARTIAL TESTS PASSED: std + exit +} + # We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code, # creation of first goroutines and first garbage collections in the parallel setting. # TODO(bradfitz,0intro): make this not be 15 minutes once Plan 9 runs quickly on GCE. |