LEFT | RIGHT |
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 rfork ne | 6 rfork e |
7 | 7 |
8 eval `{go env} | 8 eval `{go env} |
9 | 9 |
10 GOPATH = () # we disallow local import for non-local packges, if $GOROOT happens | 10 GOPATH = () # we disallow local import for non-local packges, if $GOROOT happens |
11 # to be under $GOPATH, then some tests below will fail | 11 # to be under $GOPATH, then some tests below will fail |
12 | |
13 # Bind $GOROOT/bin before /bin. | |
14 bind -b $GOROOT/bin /bin | |
15 | 12 |
16 # allow all.rc to avoid double-build of everything | 13 # allow all.rc to avoid double-build of everything |
17 rebuild = true | 14 rebuild = true |
18 if(~ $1 --no-rebuild) | 15 if(~ $1 --no-rebuild) |
19 shift | 16 shift |
20 if not { | 17 if not { |
21 # Run only one process at a time on 9vx. | 18 # Run only one process at a time on 9vx. |
22 if(~ $sysname vx32) | 19 if(~ $sysname vx32) |
23 pflag = (-p 1) | 20 pflag = (-p 1) |
24 echo '# Building packages and commands.' | 21 echo '# Building packages and commands.' |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 echo '#' ../test/bench/go1 | 54 echo '#' ../test/bench/go1 |
58 go test ../test/bench/go1 | 55 go test ../test/bench/go1 |
59 | 56 |
60 @{ | 57 @{ |
61 xcd ../test | 58 xcd ../test |
62 GOMAXPROCS='' time go run run.go | 59 GOMAXPROCS='' time go run run.go |
63 } | 60 } |
64 | 61 |
65 echo | 62 echo |
66 echo ALL TESTS PASSED | 63 echo ALL TESTS PASSED |
LEFT | RIGHT |