Left: | ||
Right: |
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 export GOROOT # the api test requires GOROOT to be set. | 9 export GOROOT # the api test requires GOROOT to be set. |
10 | 10 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 (xcd ../misc/cgo/testasan | 171 (xcd ../misc/cgo/testasan |
172 go run main.go || exit 1 | 172 go run main.go || exit 1 |
173 ) || exit $? | 173 ) || exit $? |
174 | 174 |
175 [ "$CGO_ENABLED" != 1 ] || | 175 [ "$CGO_ENABLED" != 1 ] || |
176 [ "$GOHOSTOS" == windows ] || | 176 [ "$GOHOSTOS" == windows ] || |
177 (xcd ../misc/cgo/errors | 177 (xcd ../misc/cgo/errors |
178 ./test.bash || exit 1 | 178 ./test.bash || exit 1 |
179 ) || exit $? | 179 ) || exit $? |
180 | 180 |
181 [ "$GOOS" = nacl ] || | |
bradfitz
2014/05/20 06:47:25
as below...
rsc
2014/05/20 15:53:25
Done.
| |
181 (xcd ../doc/progs | 182 (xcd ../doc/progs |
182 time ./run || exit 1 | 183 time ./run || exit 1 |
183 ) || exit $? | 184 ) || exit $? |
184 | 185 |
186 [ "$GOOS" = nacl ] || | |
bradfitz
2014/05/20 06:47:24
Why is this line = but the next line ==?
rsc
2014/05/20 15:53:25
Done. (I have no idea.)
| |
185 [ "$GOARCH" == arm ] || # uses network, fails under QEMU | 187 [ "$GOARCH" == arm ] || # uses network, fails under QEMU |
186 (xcd ../doc/articles/wiki | 188 (xcd ../doc/articles/wiki |
187 ./test.bash || exit 1 | 189 ./test.bash || exit 1 |
188 ) || exit $? | 190 ) || exit $? |
189 | 191 |
192 [ "$GOOS" = nacl ] || | |
bradfitz
2014/05/20 06:47:24
etc
rsc
2014/05/20 15:53:25
Done.
| |
190 (xcd ../doc/codewalk | 193 (xcd ../doc/codewalk |
191 time ./run || exit 1 | 194 time ./run || exit 1 |
192 ) || exit $? | 195 ) || exit $? |
193 | 196 |
194 echo | 197 echo |
195 echo '#' ../misc/goplay | 198 echo '#' ../misc/goplay |
196 go build ../misc/goplay | 199 go build ../misc/goplay |
197 rm -f goplay | 200 rm -f goplay |
198 | 201 |
202 [ "$GOOS" = nacl ] || | |
bradfitz
2014/05/20 06:47:24
etc
rsc
2014/05/20 15:53:25
Done.
| |
199 [ "$GOARCH" == arm ] || | 203 [ "$GOARCH" == arm ] || |
200 (xcd ../test/bench/shootout | 204 (xcd ../test/bench/shootout |
201 time ./timing.sh -test || exit 1 | 205 time ./timing.sh -test || exit 1 |
202 ) || exit $? | 206 ) || exit $? |
203 | 207 |
204 [ "$GOOS" == openbsd ] || # golang.org/issue/5057 | 208 [ "$GOOS" == openbsd ] || # golang.org/issue/5057 |
205 ( | 209 ( |
206 echo | 210 echo |
207 echo '#' ../test/bench/go1 | 211 echo '#' ../test/bench/go1 |
208 go test ../test/bench/go1 || exit 1 | 212 go test ../test/bench/go1 || exit 1 |
209 ) || exit $? | 213 ) || exit $? |
210 | 214 |
211 (xcd ../test | 215 (xcd ../test |
212 unset GOMAXPROCS | 216 unset GOMAXPROCS |
213 time go run run.go || exit 1 | 217 GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go build -o runtest run.go || exit 1 |
218 time ./runtest || exit 1 | |
219 rm -f runtest | |
220 ) || exit $? | |
221 | |
222 [ "$GOOS" == nacl ] || | |
bradfitz
2014/05/20 06:47:24
but this one is == ?
rsc
2014/05/20 15:53:25
Done.
| |
223 ( | |
224 echo | |
225 echo '# Checking API compatibility.' | |
226 time go run $GOROOT/src/cmd/api/run.go || exit 1 | |
214 ) || exit $? | 227 ) || exit $? |
215 | 228 |
216 echo | 229 echo |
217 echo '# Checking API compatibility.' | |
218 time go run $GOROOT/src/cmd/api/run.go | |
219 | |
220 echo | |
221 echo ALL TESTS PASSED | 230 echo ALL TESTS PASSED |
OLD | NEW |