Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(422)

Side by Side Diff: src/run.bat

Issue 5847068: code review 5847068: misc/cgo/stdio: make it work on Windows (Closed)
Patch Set: diff -r c47b0caa500e https://code.google.com/p/go/ Created 13 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« misc/cgo/stdio/file.go ('K') | « misc/cgo/stdio/file.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« misc/cgo/stdio/file.go ('K') | « misc/cgo/stdio/file.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b