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

Side by Side Diff: src/run.bash

Issue 5852043: code review 5852043: build: unset GOPATH before tests (Closed)
Patch Set: diff -r a01526dcd58e 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 | « no previous file | src/run.bat » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | src/run.bat » ('j') | no next file with comments »

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