diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2012-02-24 13:17:26 +1100 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2012-02-24 13:17:26 +1100 |
commit | 733014fdbf3f2981c40bf66abcb17a30957b4e39 (patch) | |
tree | 6403300975f3c046a1a603f811ca7ae7eece534b /test/testlib | |
parent | aa673e7253933957bc63e8884295c64da3f50c23 (diff) | |
download | go-733014fdbf3f2981c40bf66abcb17a30957b4e39.tar.gz |
test: add cmpout to testlib
R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5699060
Diffstat (limited to 'test/testlib')
-rw-r--r-- | test/testlib | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testlib b/test/testlib index ea8c5d74e..2e4fefc8c 100644 --- a/test/testlib +++ b/test/testlib @@ -17,6 +17,10 @@ run() { $G $D/$F.go && $L $F.$A && ./$A.out "$@" } +cmpout() { + $G $D/$F.go && $L $F.$A && ./$A.out 2>&1 | cmp - $D/$F.out +} + errorcheck() { errchk $G -e $D/$F.go } |