summaryrefslogtreecommitdiff
path: root/test/run
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-07-29 15:11:19 -0700
committerRuss Cox <rsc@golang.org>2009-07-29 15:11:19 -0700
commit07ad1cb219877f63914ba8050bb3fac8c5266ae2 (patch)
tree7ff06efa8ac0cbfdc9a1931b07fdc57eac36d2e4 /test/run
parent2901dbd3e1108902b7b01fbf4404df1978cd9174 (diff)
downloadgo-07ad1cb219877f63914ba8050bb3fac8c5266ae2.tar.gz
tweak final line of test output:
4 known bugs; 0 unexpected bugs which should be less scary to people unfamiliar with the tests. R=r DELTA=44 (29 added, 12 deleted, 3 changed) OCL=32460 CL=32464
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/run b/test/run
index 094aa8427..839b4014c 100755
--- a/test/run
+++ b/test/run
@@ -34,8 +34,10 @@ TMP2FILE=/tmp/gotest2-$$-$USER
# on thresher, 3GB suffices to run the tests; with 2GB, peano fails.
ulimit -v 4000000
-for dir in . ken chan interface bugs fixedbugs
+for dir in . ken chan interface fixedbugs bugs
do
+ echo
+ echo '==' $dir'/'
for i in $dir/*.go
do
export F=$(basename $i .go)
@@ -80,6 +82,9 @@ then
failed=1
fi
-echo 2>&1 $(grep -c '^BUG' run.out) tests are behaving incorrectly
+notinbugs=$(sed '/^== bugs/q' run.out | grep -c '^BUG')
+inbugs=$(sed '1,/^== bugs/d' run.out | grep -c '^BUG')
+
+echo 2>&1 $inbugs known bugs';' $notinbugs unexpected bugs
exit $failed