diff options
author | Russ Cox <rsc@golang.org> | 2010-01-19 21:34:44 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-01-19 21:34:44 -0800 |
commit | 8430d7d3f124eefc7358aa421a7d9bf654d0eea9 (patch) | |
tree | 4de4fe19755ca59ece2dea1b42508adef768a321 /src/cmd/gotest | |
parent | b87e2dc2f56155501b9ac46e136c8015d4f36877 (diff) | |
download | golang-8430d7d3f124eefc7358aa421a7d9bf654d0eea9.tar.gz |
cleanup toward eliminating package global name space
* switch to real dot (.) instead of center dot (·) everywhere in object files.
before it was half and half depending on where in the name it appeared.
* in 6c/6a/etc identifiers, · can still be used but turns into . immediately.
* in export metadata, replace package identifiers with quoted strings
(still package names, not paths).
R=ken2, r
CC=golang-dev
http://codereview.appspot.com/190076
Diffstat (limited to 'src/cmd/gotest')
-rwxr-xr-x | src/cmd/gotest/gotest | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index b2e433094..cb0a2cdd9 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -8,7 +8,7 @@ # tests. # If files are named on the command line, use them instead of test*.go. -# Makes egrep,grep work better with · if we put them +# Makes egrep,grep work better in general if we put them # in ordinary C mode instead of what the current language is. unset LANG export LC_ALL=C @@ -115,14 +115,14 @@ importpath=$("$GOBIN"/gomake -s importpath) # the grep -v eliminates methods and other special names # that have multiple dots. pattern='Test([^a-z].*)?' - tests=$("$GOBIN"/6nm -s _test/$importpath.a $xofile | egrep ' T .*·'$pattern'$' | grep -v '·.*[.·]' | sed 's/.* //; s/·/./') + tests=$("$GOBIN"/6nm -s _test/$importpath.a $xofile | egrep ' T .*\.'$pattern'$' | sed 's/.* //; /\..*\./d') if [ "x$tests" = x ]; then echo 'gotest: error: no tests matching '$pattern in _test/$importpath.a $xofile 1>&2 exit 2 fi # benchmarks are named BenchmarkFoo. pattern='Benchmark([^a-z].*)?' - benchmarks=$("$GOBIN"/6nm -s _test/$importpath.a $xofile | egrep ' T .*·'$pattern'$' | grep -v '·.*[.·]' | sed 's/.* //; s/·/./') + benchmarks=$("$GOBIN"/6nm -s _test/$importpath.a $xofile | egrep ' T .*\.'$pattern'$' | sed 's/.* //; /\..*\./d') # package spec echo 'package main' |