Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(98)

Side by Side Diff: src/run.rc

Issue 7389049: code review 7389049: build: do not set GOBIN on Plan 9 (Closed)
Patch Set: diff -r b2cf2bf50e1f https://code.google.com/p/go/ Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/make.rc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/rc -e 1 #!/bin/rc -e
2 # Copyright 2012 The Go Authors. All rights reserved. 2 # Copyright 2012 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style 3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file. 4 # license that can be found in the LICENSE file.
5 5
6 eval `{go tool dist env -9} 6 rfork e
7
8 eval `{go env}
9
10 GOPATH = () # we disallow local import for non-local packges, if $GOROOT happens
11 # to be under $GOPATH, then some tests below will fail
7 12
8 # allow all.rc to avoid double-build of everything 13 # allow all.rc to avoid double-build of everything
9 rebuild = true 14 rebuild = true
10 if(~ $1 --no-rebuild) 15 if(~ $1 --no-rebuild)
11 shift 16 shift
12 if not { 17 if not {
18 # Run only one process at a time on 9vx.
19 if(~ $sysname vx32)
20 pflag = (-p 1)
13 echo '# Building packages and commands.' 21 echo '# Building packages and commands.'
14 » time go install -a -v -p 1 std 22 » time go install -a -v $pflag std
15 echo 23 echo
16 } 24 }
17 25
26 # we must unset GOROOT_FINAL before tests, because runtime/debug requires
27 # correct access to source code, so if we have GOROOT_FINAL in effect,
28 # at least runtime/debug test will fail.
29 GOROOT_FINAL = ()
30
18 echo '# Testing packages.' 31 echo '# Testing packages.'
19 time go test std -short -timeout 120s 32 time go test std -short -timeout 120s
20 echo 33 echo
21 34
22 echo '# GOMAXPROCS=2 runtime -cpu=1,2,4' 35 echo '# GOMAXPROCS=2 runtime -cpu=1,2,4'
23 GOMAXPROCS=2 go test runtime -short -timeout 120s -cpu 1,2,4 36 GOMAXPROCS=2 go test runtime -short -timeout 240s -cpu 1,2,4
24 echo 37 echo
25 38
26 echo '# sync -cpu=10' 39 echo '# sync -cpu=10'
27 go test sync -short -timeout 120s -cpu 10 40 go test sync -short -timeout 120s -cpu 10
28 echo 41 echo
29 42
30 fn xcd { 43 fn xcd {
31 echo 44 echo
32 echo '#' $1 45 echo '#' $1
33 cd $"GOROOT/src/$1 46 cd $"GOROOT/src/$1
34 } 47 }
35 48
36 echo 49 echo
37 echo '#' ../misc/dashboard/builder ../misc/goplay 50 echo '#' ../misc/dashboard/builder ../misc/goplay
38 go build ../misc/dashboard/builder ../misc/gplay 51 go build ../misc/dashboard/builder ../misc/gplay
39 52
40 echo 53 echo
41 echo '#' ../test/bench/go1 54 echo '#' ../test/bench/go1
42 go test ../test/bench/go1 55 go test ../test/bench/go1
43 56
44 @{ 57 @{
45 xcd ../test 58 xcd ../test
46 GOMAXPROCS='' time go run run.go 59 GOMAXPROCS='' time go run run.go
47 } 60 }
48 61
49 echo 62 echo
50 echo ALL TESTS PASSED 63 echo ALL TESTS PASSED
OLDNEW
« no previous file with comments | « src/make.rc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b