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.
6 :: Keep environment variables within this script
7 :: unless invoked with --no-local.
8 if x%1==x--no-local goto nolocal
9 if x%2==x--no-local goto nolocal
15 rem TODO avoid rebuild if possible
17 if x%1==x--no-rebuild goto norebuild
18 echo # Building packages and commands.
20 if errorlevel 1 goto fail
24 echo # Testing packages.
25 go test std -short -timeout=120s
26 if errorlevel 1 goto fail
29 echo # runtime -cpu=1,2,4
30 go test runtime -short -timeout=120s -cpu=1,2,4
31 if errorlevel 1 goto fail
35 go test sync -short -timeout=120s -cpu=10
36 if errorlevel 1 goto fail
39 :: TODO: The other tests in run.bash, especially $GOROOT/test/run.