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

Delta Between Two Patch Sets: test/run

Issue 5742043: code review 5742043: cmd/gc: if $GOROOT_FINAL is set, rewrite file names in ... (Closed)
Left Patch Set: Created 13 years ago
Right Patch Set: diff -r 483444f87009 https://go.googlecode.com/hg/ Created 13 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/gc/obj.c ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 eval $(go tool dist env) 6 eval $(go tool dist env)
7 export GOARCH GOOS GOROOT 7 export GOARCH GOOS GOROOT
8 export E= 8 export E=
9 9
10 case X"$GOARCH" in 10 case X"$GOARCH" in
(...skipping 10 matching lines...) Expand all
21 *) 21 *)
22 echo 1>&2 run: unsupported '$GOARCH' 22 echo 1>&2 run: unsupported '$GOARCH'
23 exit 1 23 exit 1
24 esac 24 esac
25 25
26 export G="${A}g ${GCFLAGS}" 26 export G="${A}g ${GCFLAGS}"
27 export L=${A}l 27 export L=${A}l
28 export GOTRACEBACK=0 28 export GOTRACEBACK=0
29 export LANG=C 29 export LANG=C
30 unset GREP_OPTIONS # in case user has a non-standard set 30 unset GREP_OPTIONS # in case user has a non-standard set
31
32 unset GOROOT_FINAL # breaks ./ imports
31 33
32 failed=0 34 failed=0
33 35
34 PATH=${GOBIN:-$GOROOT/bin}:`pwd`:/bin:/usr/bin:/usr/local/bin 36 PATH=${GOBIN:-$GOROOT/bin}:`pwd`:/bin:/usr/bin:/usr/local/bin
35 37
36 # TODO: We add the tool directory to the PATH to avoid thinking about a better w ay. 38 # TODO: We add the tool directory to the PATH to avoid thinking about a better w ay.
37 PATH="$GOTOOLDIR:$PATH" 39 PATH="$GOTOOLDIR:$PATH"
38 40
39 RUNFILE="${TMPDIR:-/tmp}/gorun-$$-$USER" 41 RUNFILE="${TMPDIR:-/tmp}/gorun-$$-$USER"
40 TMP1FILE="${TMPDIR:-/tmp}/gotest1-$$-$USER" 42 TMP1FILE="${TMPDIR:-/tmp}/gotest1-$$-$USER"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 notinbugs=$(sed '/^== bugs/q' run.out | grep -c '^BUG') 127 notinbugs=$(sed '/^== bugs/q' run.out | grep -c '^BUG')
126 inbugs=$(sed '1,/^== bugs/d' run.out | grep -c '^BUG') 128 inbugs=$(sed '1,/^== bugs/d' run.out | grep -c '^BUG')
127 129
128 echo 2>&1 $inbugs known bugs';' $notinbugs unexpected bugs$diffmsg 130 echo 2>&1 $inbugs known bugs';' $notinbugs unexpected bugs$diffmsg
129 131
130 if [ "$failed" != "0" ]; then 132 if [ "$failed" != "0" ]; then
131 echo FAILED 133 echo FAILED
132 fi 134 fi
133 135
134 exit $failed 136 exit $failed
LEFTRIGHT

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