summaryrefslogtreecommitdiff
path: root/misc/cgo/life/test.bash
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/life/test.bash')
-rwxr-xr-xmisc/cgo/life/test.bash11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/cgo/life/test.bash b/misc/cgo/life/test.bash
new file mode 100755
index 000000000..5c5fba1a9
--- /dev/null
+++ b/misc/cgo/life/test.bash
@@ -0,0 +1,11 @@
+#!/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
+gomake life
+echo '*' life >run.out
+./life >>run.out
+diff run.out golden.out
+gomake clean