Commit b96ad809 authored by Robert Griesemer's avatar Robert Griesemer

enable all (but one) test cases in test.sh that

were excluded before because of incorrect comment
formatting (comment formatting is mostly idempotent
at this point)

R=rsc
http://go/go-review/1018014
parent d8efcdcd
...@@ -29,19 +29,15 @@ count() { ...@@ -29,19 +29,15 @@ count() {
apply1() { apply1() {
#echo $1 $2 #echo $1 $2
case `basename $F` in case `basename $F` in
# files with errors (skip them) # except for elf.go (which is not yet idempotent due to a few
# the following have semantic errors: # tricky-to-format comments) the following files are skipped
# bug039.go | bug040.go # because they are test cases for syntax errors and thus won't
# the following are not idempotent at the moment because of comment formatting: # parse in the first place:
# TODO: restructure script so these files are only excluded from idempotency testing elf.go | \
comment.go | net.go | powser1.go | powser2.go | bug052.go | simpbool.go | shift.go | range.go | \ func3.go | const2.go | \
goyacc.go | godoc.go | rpc.go | struct.go | log.go | decimal.go | tabwriter.go | encoder.go | debug.go | \ bug014.go | bug050.go | bug068.go | bug083.go | bug088.go | \
elf.go | meteor-contest.go | elffmt.go | xml.go | read.go | \ bug106.go | bug121.go | bug125.go | bug133.go | bug160.go | \
\ bug163.go | bug166.go | bug169.go ) ;;
test_errors.go | calc.go | method1.go | selftest1.go | func3.go | const2.go | \
bug014.go | bug025.go | bug029.go | bug032.go | bug039.go | bug040.go | bug050.go | bug068.go | \
bug088.go | bug083.go | bug106.go | bug121.go | bug125.go | bug126.go | bug132.go | bug133.go | \
bug134.go | bug160.go | bug163.go | bug166.go | bug169.go ) ;;
* ) $1 $2; count $F;; * ) $1 $2; count $F;;
esac esac
} }
...@@ -49,7 +45,7 @@ apply1() { ...@@ -49,7 +45,7 @@ apply1() {
# apply to local files # apply to local files
applydot() { applydot() {
for F in `find . -name "*.go" | grep -v "OLD" | grep -v "._"`; do for F in `find . -name "*.go" | grep -v "._"`; do
apply1 $1 $F apply1 $1 $F
done done
} }
...@@ -57,7 +53,7 @@ applydot() { ...@@ -57,7 +53,7 @@ applydot() {
# apply to all .go files we can find # apply to all .go files we can find
apply() { apply() {
for F in `find $GOROOT -name "*.go" | grep -v "OLD" | grep -v "._"`; do for F in `find $GOROOT -name "*.go" | grep -v "._"`; do
apply1 $1 $F apply1 $1 $F
done done
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment