aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-02-12 15:28:11 -0800
committerRobert Griesemer <gri@golang.org>2010-02-12 15:28:11 -0800
commitfba50ee5ede4866a621b90355fb466e7634c3325 (patch)
tree01eae1b3e9399b4c5851dd95ce4303c29b4bb306
parent58d5d6f34f210f5b184b72f0ae4739525cc6e903 (diff)
downloadgo-fba50ee5ede4866a621b90355fb466e7634c3325.tar.gz
go-fba50ee5ede4866a621b90355fb466e7634c3325.zip
update gofmt test script
R=adg CC=golang-dev https://golang.org/cl/207088
-rwxr-xr-xsrc/cmd/gofmt/test.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/cmd/gofmt/test.sh b/src/cmd/gofmt/test.sh
index f0b99c8add..b9bb062955 100755
--- a/src/cmd/gofmt/test.sh
+++ b/src/cmd/gofmt/test.sh
@@ -33,17 +33,22 @@ error() {
# apply to one file
apply1() {
- #echo $1 $2
- case `basename "$F"` in
# the following files are skipped because they are test cases
# for syntax errors and thus won't parse in the first place:
+ case `basename "$F"` in
func3.go | const2.go | \
bug014.go | bug050.go | bug068.go | bug083.go | bug088.go | \
bug106.go | bug121.go | bug125.go | bug133.go | bug160.go | \
bug163.go | bug166.go | bug169.go | bug217.go | bug222.go | \
- bug226.go | bug228.go | bug248.go ) ;;
- * ) "$1" "$2"; count "$F";;
+ bug226.go | bug228.go | bug248.go ) return ;;
esac
+ # the following directories are skipped because they contain test
+ # cases for syntax errors and thus won't parse in the first place:
+ case `dirname "$F"` in
+ $GOROOT/test/syntax ) return ;;
+ esac
+ #echo $1 $2
+ "$1" "$2"; count "$F"
}