OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 # Copyright 2009 The Go Authors. All rights reserved. | 2 # Copyright 2009 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 set -e | 6 set -e |
7 | 7 |
8 eval $(go env) | 8 eval $(go env) |
9 | 9 |
10 unset CDPATH # in case user has it set | 10 unset CDPATH # in case user has it set |
| 11 unset GOPATH # we disallow local import for non-local packages, if $GOROOT ha
ppens |
| 12 # to be under $GOPATH, then some tests below will fail |
11 | 13 |
12 # no core files, please | 14 # no core files, please |
13 ulimit -c 0 | 15 ulimit -c 0 |
14 | 16 |
15 # allow all.bash to avoid double-build of everything | 17 # allow all.bash to avoid double-build of everything |
16 rebuild=true | 18 rebuild=true |
17 if [ "$1" = "--no-rebuild" ]; then | 19 if [ "$1" = "--no-rebuild" ]; then |
18 shift | 20 shift |
19 else | 21 else |
20 echo '# Building packages and commands.' | 22 echo '# Building packages and commands.' |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 (xcd ../test | 90 (xcd ../test |
89 time go run run.go | 91 time go run run.go |
90 ) || exit $? | 92 ) || exit $? |
91 | 93 |
92 echo | 94 echo |
93 echo '# Checking API compatibility.' | 95 echo '# Checking API compatibility.' |
94 go tool api -c $GOROOT/api/go1.txt | 96 go tool api -c $GOROOT/api/go1.txt |
95 | 97 |
96 echo | 98 echo |
97 echo ALL TESTS PASSED | 99 echo ALL TESTS PASSED |
OLD | NEW |