Re: code review 6218048: doc/progs: use test/run.go for testing (issue 6218048)

27 views
Skip to first unread message

r...@golang.org

unread,
Aug 30, 2012, 10:43:17 AM8/30/12
to minu...@gmail.com, golan...@googlegroups.com, alex.b...@gmail.com, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
LGTM but you need a change to run.bash


http://codereview.appspot.com/6218048/

minu...@gmail.com

unread,
Sep 1, 2012, 4:16:03 AM9/1/12
to golan...@googlegroups.com, alex.b...@gmail.com, r...@golang.org, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
On 2012/08/30 14:43:17, rsc wrote:
> ... but you need a change to run.bash
run.go can't test cgo*.go and go1.go now
can we just add
go run %GOROOT%/test/run.go - ../doc/progs
to run.bash without deleting the existing call to
../doc/prog.run?

http://codereview.appspot.com/6218048/

Russ Cox

unread,
Sep 1, 2012, 9:55:59 AM9/1/12
to minu...@gmail.com, golan...@googlegroups.com, alex.b...@gmail.com, r...@golang.org, re...@codereview-hr.appspotmail.com
On Sat, Sep 1, 2012 at 4:16 AM, <minu...@gmail.com> wrote:
> On 2012/08/30 14:43:17, rsc wrote:
>>
>> ... but you need a change to run.bash
>
> run.go can't test cgo*.go and go1.go now
> can we just add
> go run %GOROOT%/test/run.go - ../doc/progs
> to run.bash without deleting the existing call to
> ../doc/prog.run?

I guess so, but I would rather keep run.bat and run.bash in sync. It
sounds like you are saying that even after this CL the Windows build
is missing some tests that happen in the Unix build?

Russ

minux

unread,
Sep 1, 2012, 10:03:53 AM9/1/12
to Russ Cox, golan...@googlegroups.com, alex.b...@gmail.com, re...@codereview-hr.appspotmail.com
On Sat, Sep 1, 2012 at 9:55 PM, Russ Cox <r...@golang.org> wrote:
I guess so, but I would rather keep run.bat and run.bash in sync. It
sounds like you are saying that even after this CL the Windows build
is missing some tests that happen in the Unix build?
cgo[1-4].go can only be tested on cgo enabled (and not FreeBSD)
builds, our run.go doesn't support conditional testing.
go1.go will output filenames in the current directory, so this can'be
tested by "cmpout"/"run", so i can only "compile" this file (unless run.go
supports regexp matching for cmpout)

Russ Cox

unread,
Sep 1, 2012, 10:22:44 AM9/1/12
to minux, golan...@googlegroups.com, alex.b...@gmail.com, re...@codereview-hr.appspotmail.com
ok

minu...@gmail.com

unread,
Sep 2, 2012, 3:50:12 PM9/2/12
to minu...@gmail.com, golan...@googlegroups.com, alex.b...@gmail.com, r...@golang.org, re...@codereview-hr.appspotmail.com
*** Submitted as
http://code.google.com/p/go/source/detail?r=2323dc1ecb83 ***

doc/progs: use test/run.go for testing on Windows
cgo[1-4].go, go1.go couldn't be tested now
(cgo[1-4].go can only be tested when cgo is enabled, go1.go
contain a list of filenames in the current directory)

R=golang-dev, alex.brainman, rsc
CC=golang-dev
http://codereview.appspot.com/6218048


http://codereview.appspot.com/6218048/
Reply all
Reply to author
Forward
0 new messages