1 :: Copyright 2012 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 @echo off
6 7 if not exist ..\bin\go.exe (
8 echo Must run run.bat from Go src directory after installing cmd/go.
9 exit /b 1
10 )
11 12 setlocal
13 14 set GOENV=off
15 ..\bin\go tool dist env > env.bat || exit /b 1
16 call .\env.bat
17 del env.bat
18 19 set GOPATH=c:\nonexist-gopath
20 ..\bin\go tool dist test --rebuild %* || exit /b 1
21