diff options
author | Russ Cox <rsc@golang.org> | 2012-02-16 23:48:24 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-16 23:48:24 -0500 |
commit | 66ab3d5ec1d063f730c56ac2e2dfb4363974ac2c (patch) | |
tree | 6440fc2f0f55e42c56deeeded392df3ad4b84bec /test/testlib | |
parent | 5813a0170d1661826a950fa310748f00bdab4b5f (diff) | |
download | go-66ab3d5ec1d063f730c56ac2e2dfb4363974ac2c.tar.gz |
test: add testlib
R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5676077
Diffstat (limited to 'test/testlib')
-rw-r--r-- | test/testlib | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/testlib b/test/testlib new file mode 100644 index 000000000..ea8c5d74e --- /dev/null +++ b/test/testlib @@ -0,0 +1,22 @@ +# Copyright 2012 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. + +# These function names are also known to +# (and are the plan for transitioning to) run.go. + +compile() { + $G $D/$F.go +} + +build() { + $G $D/$F.go && $L $F.$A +} + +run() { + $G $D/$F.go && $L $F.$A && ./$A.out "$@" +} + +errorcheck() { + errchk $G -e $D/$F.go +} |