2 # Copyright 2013 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file.
6 # race.bash tests the standard library under the race detector.
7 # https://golang.org/doc/articles/race_detector.html
12 echo 'race detector is only supported on linux/amd64, linux/ppc64le, freebsd/amd64, netbsd/amd64 and darwin/amd64' 1>&2
19 if sysctl machdep.cpu.extfeatures | grep -qv EM64T; then
24 if [ $(uname -m) != "x86_64" ] && [ $(uname -m) != "ppc64le" ]; then
29 if [ $(uname -m) != "amd64" ]; then
34 if [ $(uname -m) != "amd64" ]; then
43 if [ ! -f make.bash ]; then
44 echo 'race.bash must be run from $GOROOT/src' 1>&2
47 . ./make.bash --no-banner
49 go tool dist test -race