blob: 54dd59772ad2f004c8112dc7dcd6f0c521db8137 [file] [log] [blame]
# Named explicitly, test-only packages should be reported as
# unbuildable/uninstallable, even if there is a wildcard also matching.
! go build testonly testonly...
stderr 'no non-test Go files in'
! go install ./testonly
stderr 'no non-test Go files in'
# Named through a wildcard, the test-only packages should be silently ignored.
go build testonly...
go install ./testonly...
-- testonly/t_test.go --
package testonly
-- testonly2/t.go --
package testonly2