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 -buildmode=plugin #18814

Open
crawshaw opened this Issue Jan 27, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@crawshaw
Contributor

crawshaw commented Jan 27, 2017

Over on #18729 I am finding bugs by taking existing package unit tests and converting them into plugins that shell unit test can then call.

This is a bit messy to do outside of the go tool, as it requires messing with the definition of a package (including export_test.go, exporting the test functions, etc). It would be relatively straightforward to do inside the go tool, and we already have the flags we would need to trigger it.

Then we could have a builder that runs all the tests under plugins, which would exercise the multi-module code paths in the runtime package used by -buildmode=shared and -buildmode=plugin.

@crawshaw crawshaw added this to the Go1.9 milestone Jan 27, 2017

@crawshaw crawshaw self-assigned this Jan 27, 2017

@bradfitz bradfitz added the Builders label Jan 30, 2017

@bradfitz bradfitz modified the milestones: Go1.9, Go1.10 Jun 7, 2017

@rsc rsc modified the milestones: Go1.10, Unplanned Dec 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment