summaryrefslogtreecommitdiff
path: root/test/run
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-06-06 14:27:34 -0700
committerRob Pike <r@golang.org>2008-06-06 14:27:34 -0700
commitf47dd1a887306dbc45a43701b92a93b9ca3cd10a (patch)
tree22e573d0f4432512779320404d5df24503fc4919 /test/run
parentbaa3be75b8d3039bd88eab7951096319655a5d45 (diff)
downloadgo-f47dd1a887306dbc45a43701b92a93b9ca3cd10a.tar.gz
add ken's tests.
update run to work with multiple directories SVN=121485
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run21
1 files changed, 13 insertions, 8 deletions
diff --git a/test/run b/test/run
index 209e707d5..0d314e83b 100755
--- a/test/run
+++ b/test/run
@@ -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