aboutsummaryrefslogtreecommitdiff
path: root/src/run.rc
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2013-02-26 09:25:46 -0800
committerAnthony Martin <ality@pbrane.org>2013-02-26 09:25:46 -0800
commitf08acae76e8a66a5fe245fd5c6948de8add04257 (patch)
tree31b132b54896dd2b8386225a0798d96a3647a13a /src/run.rc
parentc14d255ac5ff06cb9258beebd5bdc6197a28fbd1 (diff)
downloadgo-f08acae76e8a66a5fe245fd5c6948de8add04257.tar.gz
go-f08acae76e8a66a5fe245fd5c6948de8add04257.zip
build: do not set GOBIN on Plan 9
Also, I synced the rc files with changes that have been made to make.bash, etc. R=seed, rminnich, r CC=golang-dev https://golang.org/cl/7389049
Diffstat (limited to 'src/run.rc')
-rwxr-xr-xsrc/run.rc19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/run.rc b/src/run.rc
index 7e5d8ce379..e493eae36b 100755
--- a/src/run.rc
+++ b/src/run.rc
@@ -3,24 +3,37 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-eval `{go tool dist env -9}
+rfork e
+
+eval `{go env}
+
+GOPATH = () # we disallow local import for non-local packges, if $GOROOT happens
+ # to be under $GOPATH, then some tests below will fail
# allow all.rc to avoid double-build of everything
rebuild = true
if(~ $1 --no-rebuild)
shift
if not {
+ # Run only one process at a time on 9vx.
+ if(~ $sysname vx32)
+ pflag = (-p 1)
echo '# Building packages and commands.'
- time go install -a -v -p 1 std
+ time go install -a -v $pflag std
echo
}
+# we must unset GOROOT_FINAL before tests, because runtime/debug requires
+# correct access to source code, so if we have GOROOT_FINAL in effect,
+# at least runtime/debug test will fail.
+GOROOT_FINAL = ()
+
echo '# Testing packages.'
time go test std -short -timeout 120s
echo
echo '# GOMAXPROCS=2 runtime -cpu=1,2,4'
-GOMAXPROCS=2 go test runtime -short -timeout 120s -cpu 1,2,4
+GOMAXPROCS=2 go test runtime -short -timeout 240s -cpu 1,2,4
echo
echo '# sync -cpu=10'