Left: | ||
Right: |
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 20 matching lines...) Expand all Loading... | |
31 if errorlevel 1 goto fail | 31 if errorlevel 1 goto fail |
32 echo. | 32 echo. |
33 | 33 |
34 echo # sync -cpu=10 | 34 echo # sync -cpu=10 |
35 go test sync -short -timeout=120s -cpu=10 | 35 go test sync -short -timeout=120s -cpu=10 |
36 if errorlevel 1 goto fail | 36 if errorlevel 1 goto fail |
37 echo. | 37 echo. |
38 | 38 |
39 :: TODO: The other tests in run.bash. | 39 :: TODO: The other tests in run.bash. |
40 | 40 |
41 echo # ../misc/cgo/stdio | |
brainman
2012/03/20 00:21:56
Should not you check for CGO_ENABLED, like run.bat
| |
42 go run ../misc/cgo/stdio/hello.go >NUL | |
brainman
2012/03/20 00:21:56
I think this is not good enough. If you look in mi
| |
43 if errorlevel 1 goto fail | |
44 go run ../misc/cgo/stdio/fib.go >NUL | |
45 if errorlevel 1 goto fail | |
46 echo. | |
47 | |
41 echo # test | 48 echo # test |
42 cd ..\test | 49 cd ..\test |
43 set FAIL=0 | 50 set FAIL=0 |
44 go run run.go | 51 go run run.go |
45 if errorlevel 1 set FAIL=1 | 52 if errorlevel 1 set FAIL=1 |
46 cd ..\src | 53 cd ..\src |
47 echo. | 54 echo. |
48 if %FAIL%==1 goto fail | 55 if %FAIL%==1 goto fail |
49 | 56 |
50 echo ALL TESTS PASSED | 57 echo ALL TESTS PASSED |
51 goto end | 58 goto end |
52 | 59 |
53 :fail | 60 :fail |
54 set GOBUILDFAIL=1 | 61 set GOBUILDFAIL=1 |
55 | 62 |
56 :end | 63 :end |
OLD | NEW |