tools/go
Alan Donovan 7ce0cddaad go/ssa: synthesize Go 1.8-compatible test main package
...to match the new interface between "go test" and the standard testing
package.

Rather than generate SSA code directly, which was tricky and fragile, we
now generate source just as "go test" does, type-check it, and build an
SSA package from it.  crawshaw suggested I do this in the very first
version of testmain.go, but at the time I believed it to be infeasible.

The testMainStartBodyHook mechanism has gone away; installations that
needed it can now achieve the same results more easily by overriding the
templates.

Tested with Go 1.6, 1.7 and 1.8.

Fixes golang/go#17722

Change-Id: I3ffd25f01157f6fb7a39acd18af46f17e9c07b99
Reviewed-on: https://go-review.googlesource.com/32888
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-11-08 18:33:05 +00:00
..
ast/astutil tools: remove go1.8-tagged files 2016-11-04 21:29:52 +00:00
buildutil x/tools: s/oracle/guru/g in various comments 2016-10-13 18:54:04 +00:00
callgraph x/tools: delete x/tools/go/types and dependent packages/client files 2016-04-06 21:52:49 +00:00
gccgoexportdata go/gccgoexportdata: plumb additional arguments to gccgo compiler 2016-11-07 23:39:01 +00:00
gcexportdata go/gcexportdata: suppress example_test.go on Go 1.6 2016-10-28 18:18:30 +00:00
gcimporter15 go/gcimporter15: revert user-visible changes related to aliases 2016-11-05 01:00:22 +00:00
internal/gccgoimporter go/gccgoexportdata: plumb additional arguments to gccgo compiler 2016-11-07 23:39:01 +00:00
loader go/loader: fix fragile example test 2016-11-04 21:44:43 +00:00
pointer go/ssa: support custom TestMain functions in test packages 2016-10-19 17:50:59 +00:00
ssa go/ssa: synthesize Go 1.8-compatible test main package 2016-11-08 18:33:05 +00:00
types/typeutil x/tools: delete x/tools/go/types and dependent packages/client files 2016-04-06 21:52:49 +00:00
vcs go/vcs: accept plain file for .vcs (instead of directory) 2016-10-13 13:57:49 +00:00