Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(248)

Issue 4942050: code review 4942050: go/build: add test support & use in gotest (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by rsc
Modified:
13 years, 7 months ago
Reviewers:
CC:
adg, r, mattn, golang-dev
Visibility:
Public.

Description

go/build: add test support & use in gotest A side-effect is that, just like foo_386.go is only built on 386, foo_386_test.go is only built for testing on 386.

Patch Set 1 #

Patch Set 2 : diff -r a7c390d2352d https://go.googlecode.com/hg #

Total comments: 5

Patch Set 3 : diff -r 317e3c1d3e8c https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -67 lines) Patch
M src/cmd/gotest/gotest.go View 1 2 chunks +9 lines, -6 lines 0 comments Download
M src/pkg/go/build/build_test.go View 1 2 2 chunks +52 lines, -12 lines 0 comments Download
M src/pkg/go/build/dir.go View 1 2 6 chunks +86 lines, -48 lines 0 comments Download
A src/pkg/go/build/pkgtest/sqrt_386_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/go/build/pkgtest/sqrt_amd64_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/go/build/pkgtest/sqrt_arm_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/go/build/pkgtest/sqrt_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/go/build/pkgtest/xsqrt_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/go/build/syslist_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
rsc
Hello adg, r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 7 months ago (2011-08-23 17:22:27 UTC) #1
r
gotest changes LGTM others seem reasonable; leaving for adg
13 years, 7 months ago (2011-08-23 22:32:43 UTC) #2
adg
LGTM http://codereview.appspot.com/4942050/diff/4/src/pkg/go/build/build_test.go File src/pkg/go/build/build_test.go (right): http://codereview.appspot.com/4942050/diff/4/src/pkg/go/build/build_test.go#newcode94 src/pkg/go/build/build_test.go:94: // XXX Why is this deferred? There was ...
13 years, 7 months ago (2011-08-24 00:22:11 UTC) #3
mattn
http://codereview.appspot.com/4942050/diff/4/src/pkg/go/build/build_test.go File src/pkg/go/build/build_test.go (right): http://codereview.appspot.com/4942050/diff/4/src/pkg/go/build/build_test.go#newcode31 src/pkg/go/build/build_test.go:31: TestGoFiles: sortstr([]string{"sqrt_test.go", "sqrt_" + runtime.GOARCH + "_test.go"}), This won't ...
13 years, 7 months ago (2011-08-24 00:41:03 UTC) #4
rsc
> This won't match as expected because the files does not exist. thanks, added to ...
13 years, 7 months ago (2011-08-24 02:40:26 UTC) #5
rsc
13 years, 7 months ago (2011-08-24 02:45:34 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=59231dccb894 ***

go/build: add test support & use in gotest

A side-effect is that, just like foo_386.go
is only built on 386, foo_386_test.go is only
built for testing on 386.

R=adg, r, mattn.jp
CC=golang-dev
http://codereview.appspot.com/4942050
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b