diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-04-20 23:45:43 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-04-20 23:45:43 +0800 |
commit | 872940503e95dfff5a4b9b47f59c6200c6fa2b21 (patch) | |
tree | 17450eb6f9862d7f2802026374341385d0eed8cb /test/testlib | |
parent | 71dc8cf4f07986d363090748bb01bb7790528a67 (diff) | |
download | go-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/testlib | 5 |
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 |