1 :: Copyright 2013 The Go Authors. All rights reserved.
2 :: Use of this source code is governed by a BSD-style
3 :: license that can be found in the LICENSE file.
4 5 :: race.bash tests the standard library under the race detector.
6 :: https://golang.org/doc/articles/race_detector.html
7 8 @echo off
9 10 setlocal
11 12 if not exist make.bat (
13 echo race.bat must be run from go\src
14 exit /b 1
15 )
16 17 if not "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
18 echo Race detector is only supported on windows/amd64.
19 exit /b 1
20 )
21 22 call .\make.bat --no-banner || exit /b 1
23 go install -race std || exit /b 1
24 go tool dist test -race || exit /b 1
25