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.
9 ..\bin\tool\dist env -wp >env.bat
10 if errorlevel 1 goto fail
14 rem TODO avoid rebuild if possible
16 if x%1==x--no-rebuild goto norebuild
17 echo # Building packages and commands.
19 if errorlevel 1 goto fail
23 echo # Testing packages.
24 go test std -short -timeout=120s
25 if errorlevel 1 goto fail
28 echo # runtime -cpu=1,2,4
29 go test runtime -short -timeout=120s -cpu=1,2,4
30 if errorlevel 1 goto fail
34 go test sync -short -timeout=120s -cpu=10
35 if errorlevel 1 goto fail
38 :: TODO: The other tests in run.bash, especially $GOROOT/test/run.