From 8430d7d3f124eefc7358aa421a7d9bf654d0eea9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 19 Jan 2010 21:34:44 -0800 Subject: 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). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit R=ken2, r CC=golang-dev http://codereview.appspot.com/190076 --- src/cmd/gotest/gotest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/gotest') 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' -- cgit v1.2.3