summaryrefslogtreecommitdiff
path: root/misc/cgo/life
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 /misc/cgo/life
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 'misc/cgo/life')
-rw-r--r--misc/cgo/life/life.go2
-rw-r--r--misc/cgo/life/main.go2
-rw-r--r--misc/cgo/life/main.out (renamed from misc/cgo/life/golden.out)1
-rwxr-xr-xmisc/cgo/life/test.bash14
4 files changed, 4 insertions, 15 deletions
diff --git a/misc/cgo/life/life.go b/misc/cgo/life/life.go
index ec000ce3a..bbec4c56f 100644
--- a/misc/cgo/life/life.go
+++ b/misc/cgo/life/life.go
@@ -1,3 +1,5 @@
+// skip
+
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
diff --git a/misc/cgo/life/main.go b/misc/cgo/life/main.go
index 47ae0e18c..dba0965ee 100644
--- a/misc/cgo/life/main.go
+++ b/misc/cgo/life/main.go
@@ -1,3 +1,5 @@
+// cmpout
+
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
diff --git a/misc/cgo/life/golden.out b/misc/cgo/life/main.out
index 539d2106d..26fc9c6e3 100644
--- a/misc/cgo/life/golden.out
+++ b/misc/cgo/life/main.out
@@ -1,4 +1,3 @@
-* life
XXX XXX
diff --git a/misc/cgo/life/test.bash b/misc/cgo/life/test.bash
deleted file mode 100755
index bb483522c..000000000
--- a/misc/cgo/life/test.bash
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# Copyright 2010 The Go Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-set -e
-go build -o life main.go
-
-echo '*' life >run.out
-./life >>run.out
-diff run.out golden.out
-
-rm -f life
-