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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 if errorlevel 1 goto fail | 57 if errorlevel 1 goto fail |
58 echo. | 58 echo. |
59 | 59 |
60 echo # ..\test\bench\go1 | 60 echo # ..\test\bench\go1 |
61 go test ..\test\bench\go1 | 61 go test ..\test\bench\go1 |
62 if errorlevel 1 goto fail | 62 if errorlevel 1 goto fail |
63 echo. | 63 echo. |
64 | 64 |
65 :: cgo tests | 65 :: cgo tests |
66 if x%CGO_ENABLED% == x0 goto nocgo | 66 if x%CGO_ENABLED% == x0 goto nocgo |
67 :: TODO(brainman) disabled, because it is broken on go builder - http://golang.o
rg/issue/4063 | 67 echo # ..\misc\cgo\life |
68 ::echo # ..\misc\cgo\life | 68 go run %GOROOT%\test\run.go - ..\misc\cgo\life |
69 ::go run %GOROOT%\test\run.go - ..\misc\cgo\life | 69 if errorlevel 1 goto fail |
70 ::if errorlevel 1 goto fail | 70 echo. |
71 ::echo. | |
72 | 71 |
73 echo # ..\misc\cgo\stdio | 72 echo # ..\misc\cgo\stdio |
74 go run %GOROOT%\test\run.go - ..\misc\cgo\stdio | 73 go run %GOROOT%\test\run.go - ..\misc\cgo\stdio |
75 if errorlevel 1 goto fail | 74 if errorlevel 1 goto fail |
76 echo. | 75 echo. |
77 | 76 |
78 echo # ..\misc\cgo\test | 77 echo # ..\misc\cgo\test |
79 go test ..\misc\cgo\test | 78 go test ..\misc\cgo\test |
80 if errorlevel 1 goto fail | 79 if errorlevel 1 goto fail |
81 echo. | 80 echo. |
(...skipping 20 matching lines...) Expand all Loading... |
102 if errorlevel 1 goto fail | 101 if errorlevel 1 goto fail |
103 echo. | 102 echo. |
104 | 103 |
105 echo ALL TESTS PASSED | 104 echo ALL TESTS PASSED |
106 goto end | 105 goto end |
107 | 106 |
108 :fail | 107 :fail |
109 set GOBUILDFAIL=1 | 108 set GOBUILDFAIL=1 |
110 | 109 |
111 :end | 110 :end |
OLD | NEW |