diff options
author | Rob Pike <r@golang.org> | 2008-06-06 14:27:34 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-06-06 14:27:34 -0700 |
commit | f47dd1a887306dbc45a43701b92a93b9ca3cd10a (patch) | |
tree | 22e573d0f4432512779320404d5df24503fc4919 /test/run | |
parent | baa3be75b8d3039bd88eab7951096319655a5d45 (diff) | |
download | go-f47dd1a887306dbc45a43701b92a93b9ca3cd10a.tar.gz |
add ken's tests.
update run to work with multiple directories
SVN=121485
Diffstat (limited to 'test/run')
-rwxr-xr-x | test/run | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -3,6 +3,7 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. + case X"$GOARCH" in Xamd64) export A=6 @@ -18,15 +19,19 @@ export L=${A}l failed=0 -for i in *.go +for dir in . ken do - echo '===========' $i - export F=$(basename $i .go) - sed -n '1,/[^/]/p' $i | sed 's@//@@; $d' > /tmp/$USER.$$.gotest - if ! sh /tmp/$USER.$$.gotest - then - echo >&2 fail: $i - fi + for i in $dir/*.go + do + echo '===========' $i + export F=$(basename $i .go) + export D=$dir + sed -n '1,/[^/]/p' $i | sed 's@//@@; $d' > /tmp/$USER.$$.gotest + if ! sh /tmp/$USER.$$.gotest + then + echo >&2 fail: $i + fi + done done | cat -v >run.out case $failed in |