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 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 go test | 79 go test |
80 ) || exit $? | 80 ) || exit $? |
81 | 81 |
82 [ "$CGO_ENABLED" != 1 ] || | 82 [ "$CGO_ENABLED" != 1 ] || |
83 [ "$GOHOSTOS" == windows ] || | 83 [ "$GOHOSTOS" == windows ] || |
84 [ "$GOHOSTOS" == darwin ] || | 84 [ "$GOHOSTOS" == darwin ] || |
85 (xcd ../misc/cgo/testso | 85 (xcd ../misc/cgo/testso |
86 ./test.bash | 86 ./test.bash |
87 ) || exit $? | 87 ) || exit $? |
88 | 88 |
| 89 [ "$CGO_ENABLED" != 1 ] || |
| 90 (xcd ../misc/cgo/testtls |
| 91 go test -ldflags -hostobj . |
| 92 ) || exit $? |
| 93 |
89 (xcd ../doc/progs | 94 (xcd ../doc/progs |
90 time ./run | 95 time ./run |
91 ) || exit $? | 96 ) || exit $? |
92 | 97 |
93 [ "$GOARCH" == arm ] || # uses network, fails under QEMU | 98 [ "$GOARCH" == arm ] || # uses network, fails under QEMU |
94 (xcd ../doc/articles/wiki | 99 (xcd ../doc/articles/wiki |
95 make clean | 100 make clean |
96 ./test.bash | 101 ./test.bash |
97 ) || exit $? | 102 ) || exit $? |
98 | 103 |
(...skipping 22 matching lines...) Expand all Loading... |
121 unset GOMAXPROCS | 126 unset GOMAXPROCS |
122 time go run run.go | 127 time go run run.go |
123 ) || exit $? | 128 ) || exit $? |
124 | 129 |
125 echo | 130 echo |
126 echo '# Checking API compatibility.' | 131 echo '# Checking API compatibility.' |
127 go tool api -c $GOROOT/api/go1.txt -next $GOROOT/api/next.txt -except $GOROOT/ap
i/except.txt | 132 go tool api -c $GOROOT/api/go1.txt -next $GOROOT/api/next.txt -except $GOROOT/ap
i/except.txt |
128 | 133 |
129 echo | 134 echo |
130 echo ALL TESTS PASSED | 135 echo ALL TESTS PASSED |
OLD | NEW |