LEFT | RIGHT |
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 export E="" | 6 export E="" |
7 case X"$GOARCH" in | 7 case X"$GOARCH" in |
8 Xamd64) | 8 Xamd64) |
9 export A=6 | 9 export A=6 |
10 ;; | 10 ;; |
11 X386) | 11 X386) |
12 export A=8 | 12 export A=8 |
13 ;; | 13 ;; |
14 Xarm) | 14 Xarm) |
15 export A=5 | 15 export A=5 |
16 export E=${EMU_arm:-qemu-arm -cpu cortex-a8} | 16 export E=${EMU_arm:-qemu-arm -cpu cortex-a8} |
17 ;; | 17 ;; |
18 *) | 18 *) |
19 echo 1>&2 run: unsupported '$GOARCH' | 19 echo 1>&2 run: unsupported '$GOARCH' |
20 exit 1 | 20 exit 1 |
21 esac | 21 esac |
22 | 22 |
23 case X"$GOOS" in | 23 case X"$GOOS" in |
24 Xnacl) | 24 Xnacl) |
25 export E="nacl" | 25 export E="nacl" |
26 esac | 26 esac |
27 | 27 |
28 export G=${A}g | 28 export G=${A}g |
29 export L="${A}l -d" | 29 export L=${A}l |
30 export GOTRACEBACK=0 | 30 export GOTRACEBACK=0 |
31 export LANG=C | 31 export LANG=C |
32 unset GREP_OPTIONS # in case user has a non-standard set | 32 unset GREP_OPTIONS # in case user has a non-standard set |
33 | 33 |
34 failed=0 | 34 failed=0 |
35 | 35 |
36 PATH=/bin:/usr/bin:/usr/local/bin:${GOBIN:-$HOME/bin}:`pwd` | 36 PATH=/bin:/usr/bin:/usr/local/bin:${GOBIN:-$HOME/bin}:`pwd` |
37 | 37 |
38 RUNFILE=/tmp/gorun-$$-$USER | 38 RUNFILE=/tmp/gorun-$$-$USER |
39 TMP1FILE=/tmp/gotest1-$$-$USER | 39 TMP1FILE=/tmp/gotest1-$$-$USER |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 diffmsg="; test output differs" | 100 diffmsg="; test output differs" |
101 failed=1 | 101 failed=1 |
102 fi | 102 fi |
103 | 103 |
104 notinbugs=$(sed '/^== bugs/q' run.out | grep -c '^BUG') | 104 notinbugs=$(sed '/^== bugs/q' run.out | grep -c '^BUG') |
105 inbugs=$(sed '1,/^== bugs/d' run.out | grep -c '^BUG') | 105 inbugs=$(sed '1,/^== bugs/d' run.out | grep -c '^BUG') |
106 | 106 |
107 echo 2>&1 $inbugs known bugs';' $notinbugs unexpected bugs$diffmsg | 107 echo 2>&1 $inbugs known bugs';' $notinbugs unexpected bugs$diffmsg |
108 | 108 |
109 exit $failed | 109 exit $failed |
LEFT | RIGHT |