summaryrefslogtreecommitdiff
path: root/test/testlib
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-04-20 23:45:43 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-04-20 23:45:43 +0800
commit872940503e95dfff5a4b9b47f59c6200c6fa2b21 (patch)
tree17450eb6f9862d7f2802026374341385d0eed8cb /test/testlib
parent71dc8cf4f07986d363090748bb01bb7790528a67 (diff)
downloadgo-872940503e95dfff5a4b9b47f59c6200c6fa2b21.tar.gz
test: use testlib in a few more cases (part 2)
Introduced "runoutput" cmd for running generated program R=golang-dev, iant, bradfitz, remyoudompheng CC=golang-dev http://codereview.appspot.com/5869049
Diffstat (limited to 'test/testlib')
-rw-r--r--test/testlib5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testlib b/test/testlib
index 3858431a7..9e0911526 100644
--- a/test/testlib
+++ b/test/testlib
@@ -13,6 +13,11 @@ build() {
$G $D/$F.go && $L $F.$A
}
+runoutput() {
+ go run "$D/$F.go" > tmp.go
+ go run tmp.go
+}
+
run() {
gofiles=""
ingo=true