summaryrefslogtreecommitdiff
path: root/src/run.bat
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-08-07 09:38:35 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-08-07 09:38:35 +0800
commit4d10f82c2dd64ee05f9e8c5c6b07d82fbd3ff7fd (patch)
tree23d83699e51a3440709ac6768e539bc910a9a1ce /src/run.bat
parent125038ed63faaecf5765f1bcff6d51c31f82fd2b (diff)
downloadgo-4d10f82c2dd64ee05f9e8c5c6b07d82fbd3ff7fd.tar.gz
misc/cgo/{life,stdio}, test/run.go: use test/run.go to do the cgo tests
Enhances test/run.go to support testing other directories Will enable stdio tests on Windows in a follow-up CL. R=golang-dev, alex.brainman, rsc CC=golang-dev http://codereview.appspot.com/6220049
Diffstat (limited to 'src/run.bat')
-rw-r--r--src/run.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/run.bat b/src/run.bat
index 9a09d435c..496cbe3d5 100644
--- a/src/run.bat
+++ b/src/run.bat
@@ -30,6 +30,13 @@ echo.
:: at least runtime/debug test will fail.
set GOROOT_FINAL=
+:: get CGO_ENABLED
+go env > env.bat
+if errorlevel 1 goto fail
+call env.bat
+del env.bat
+echo.
+
echo # Testing packages.
go test std -short -timeout=120s
if errorlevel 1 goto fail
@@ -56,6 +63,15 @@ echo.
::if errorlevel 1 goto fail
::echo.
+:: cgo tests
+:: TODO: Other cgo tests
+if x%CGO_ENABLED% == x0 goto nocgo
+echo # ..\misc\cgo\life
+go run %GOROOT%\test\run.go - ..\misc\cgo\life
+if errorlevel 1 goto fail
+echo.
+:nocgo
+
:: TODO: The other tests in run.bash.
echo # test