| OLD | NEW |
| 1 :: Copyright 2012 The Go Authors. All rights reserved. | 1 :: Copyright 2012 The Go Authors. All rights reserved. |
| 2 :: Use of this source code is governed by a BSD-style | 2 :: Use of this source code is governed by a BSD-style |
| 3 :: license that can be found in the LICENSE file. | 3 :: license that can be found in the LICENSE file. |
| 4 @echo off | 4 @echo off |
| 5 | 5 |
| 6 :: Keep environment variables within this script | 6 :: Keep environment variables within this script |
| 7 :: unless invoked with --no-local. | 7 :: unless invoked with --no-local. |
| 8 if x%1==x--no-local goto nolocal | 8 if x%1==x--no-local goto nolocal |
| 9 if x%2==x--no-local goto nolocal | 9 if x%2==x--no-local goto nolocal |
| 10 setlocal | 10 setlocal |
| (...skipping 34 matching lines...) | | Loading... |
| 45 echo # runtime -cpu=1,2,4 | 45 echo # runtime -cpu=1,2,4 |
| 46 go test runtime -short -timeout=120s -cpu=1,2,4 | 46 go test runtime -short -timeout=120s -cpu=1,2,4 |
| 47 if errorlevel 1 goto fail | 47 if errorlevel 1 goto fail |
| 48 echo. | 48 echo. |
| 49 | 49 |
| 50 echo # sync -cpu=10 | 50 echo # sync -cpu=10 |
| 51 go test sync -short -timeout=120s -cpu=10 | 51 go test sync -short -timeout=120s -cpu=10 |
| 52 if errorlevel 1 goto fail | 52 if errorlevel 1 goto fail |
| 53 echo. | 53 echo. |
| 54 | 54 |
| 55 if not "%GOHOSTOS%-%GOOS%-%GOARCH%-%CGO_ENABLED%" == "windows-windows-amd64-1" g
oto norace |
| 56 echo '# Testing race detector.' |
rsc
2012年11月07日 14:46:45
Drop the quotes. There's no quoting in this "shell
|
| 57 go test -race -i flag |
| 58 if errorlevel 1 goto fail |
| 59 go test -race -short flag |
| 60 if errorlevel 1 goto fail |
| 61 echo. |
| 62 :norace |
| 63 |
| 55 echo # ..\misc\dashboard\builder ..\misc\goplay | 64 echo # ..\misc\dashboard\builder ..\misc\goplay |
| 56 go build ..\misc\dashboard\builder ..\misc\goplay | 65 go build ..\misc\dashboard\builder ..\misc\goplay |
| 57 if errorlevel 1 goto fail | 66 if errorlevel 1 goto fail |
| 58 echo. | 67 echo. |
| 59 | 68 |
| 60 echo # ..\test\bench\go1 | 69 echo # ..\test\bench\go1 |
| 61 go test ..\test\bench\go1 | 70 go test ..\test\bench\go1 |
| 62 if errorlevel 1 goto fail | 71 if errorlevel 1 goto fail |
| 63 echo. | 72 echo. |
| 64 | 73 |
| (...skipping 36 matching lines...) | | Loading... |
| 101 if errorlevel 1 goto fail | 110 if errorlevel 1 goto fail |
| 102 echo. | 111 echo. |
| 103 | 112 |
| 104 echo ALL TESTS PASSED | 113 echo ALL TESTS PASSED |
| 105 goto end | 114 goto end |
| 106 | 115 |
| 107 :fail | 116 :fail |
| 108 set GOBUILDFAIL=1 | 117 set GOBUILDFAIL=1 |
| 109 | 118 |
| 110 :end | 119 :end |
| OLD | NEW |