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 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 echo '# GOMAXPROCS=2 runtime -cpu=1,2,4' | 51 echo '# GOMAXPROCS=2 runtime -cpu=1,2,4' |
52 GOMAXPROCS=2 go test runtime -short -timeout=$(expr 300 \* $timeout_scale)s -cpu
=1,2,4 | 52 GOMAXPROCS=2 go test runtime -short -timeout=$(expr 300 \* $timeout_scale)s -cpu
=1,2,4 |
53 echo | 53 echo |
54 | 54 |
55 echo '# sync -cpu=10' | 55 echo '# sync -cpu=10' |
56 go test sync -short -timeout=$(expr 120 \* $timeout_scale)s -cpu=10 | 56 go test sync -short -timeout=$(expr 120 \* $timeout_scale)s -cpu=10 |
57 | 57 |
58 # Race detector only supported on Linux and OS X, | 58 # Race detector only supported on Linux and OS X, |
59 # and only on amd64, and only when cgo is enabled. | 59 # and only on amd64, and only when cgo is enabled. |
60 # Disabled due to golang.org/issue/XXX; remove XXX below to reenable. | 60 # Disabled due to golang.org/issue/7334; remove XXX below to reenable. |
61 case "$GOHOSTOS-$GOOS-$GOARCH-$CGO_ENABLED" in | 61 case "$GOHOSTOS-$GOOS-$GOARCH-$CGO_ENABLED" in |
62 XXXlinux-linux-amd64-1 | XXXdarwin-darwin-amd64-1) | 62 XXXlinux-linux-amd64-1 | XXXdarwin-darwin-amd64-1) |
63 echo | 63 echo |
64 echo '# Testing race detector.' | 64 echo '# Testing race detector.' |
65 go test -race -i runtime/race flag | 65 go test -race -i runtime/race flag |
66 go test -race -run=Output runtime/race | 66 go test -race -run=Output runtime/race |
67 go test -race -short flag | 67 go test -race -short flag |
68 esac | 68 esac |
69 | 69 |
70 xcd() { | 70 xcd() { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 unset GOMAXPROCS | 188 unset GOMAXPROCS |
189 time go run run.go || exit 1 | 189 time go run run.go || exit 1 |
190 ) || exit $? | 190 ) || exit $? |
191 | 191 |
192 echo | 192 echo |
193 echo '# Checking API compatibility.' | 193 echo '# Checking API compatibility.' |
194 time go run $GOROOT/src/cmd/api/run.go | 194 time go run $GOROOT/src/cmd/api/run.go |
195 | 195 |
196 echo | 196 echo |
197 echo ALL TESTS PASSED | 197 echo ALL TESTS PASSED |
LEFT | RIGHT |