Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: go test -c executable name should be well defined #5230

Closed
gopherbot opened this issue Apr 6, 2013 · 2 comments
Closed

cmd/go: go test -c executable name should be well defined #5230

gopherbot opened this issue Apr 6, 2013 · 2 comments
Milestone

Comments

@gopherbot
Copy link

by elazarl:

Documentation says that `go test -c` should "-c  Compile the test binary to
pkg.test but do not run it."

What exactly is the final name is not quite clear.

This is important for automation.

Initially I thought that "pkg" means "package name", but it seems
that go simply takes the last element of the import path.

Whatever decided is reasonable - but it should be documented.

    $  grep package $GOPATH/src/github.com/elazarl/goproxy/ext/html/html.go
    package goproxy_html
    $ # yes, bad name, I need to change it
    $ go test -c github.com/elazarl/goproxy/ext/html
    $ ls *.test
    html.test
@ianlancetaylor
Copy link
Contributor

Comment 1:

Labels changed: added go1.1.

@adg
Copy link
Contributor

adg commented Apr 8, 2013

Comment 2:

This issue was closed by revision 212cb03.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants