go/internal/gcimporter
Bryan C. Mills dea100b118 internal/testenv: skip tests that need export data for std if 'go tool compile' does not exist
Now that .a files are no longer being preinstalled for
standard-library packages (#47257), tests that require the export data
from those files must have access to 'go list -export' in order to
generate and load export data from the Go build cache.

`go list -export` does not work without a Go compiler, so assume that
tests that need the 'go' command also need the compiler.

This may cause the tests currently failing on the android-.*-emu
builders to instead be skipped, since the test harness does not copy
the compiler to the execution environment.

For golang/go#47257.

Change-Id: Ie82ab09ac8165a01fc1d3a083b1e86226efc469d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/451597
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-11-17 20:46:33 +00:00
..
testdata
bexport.go
bexport_test.go
bimport.go
exportdata.go
gcimporter.go
gcimporter_test.go internal/testenv: skip tests that need export data for std if 'go tool compile' does not exist 2022-11-17 20:46:33 +00:00
iexport.go
iexport_common_test.go
iexport_go118_test.go internal/testenv: skip tests that need export data for std if 'go tool compile' does not exist 2022-11-17 20:46:33 +00:00
iexport_test.go
iimport.go
israce_test.go
newInterface10.go
newInterface11.go
shallow_test.go internal/gcimporter: use nondeprecated go/packages mode bits 2022-11-07 21:25:05 +00:00
stdlib_test.go
support_go117.go
support_go118.go
unified_no.go
unified_yes.go
ureader_no.go
ureader_yes.go internal/gcimporter: port memory reuse optimizations from Go tree 2022-11-15 20:27:34 +00:00