os.Exit(m.Run())
}
-// skipSpecialPlatforms causes the test to be skipped for platforms where
-// builders (build.golang.org) don't have access to compiled packages for
-// import.
-func skipSpecialPlatforms(t *testing.T) {
- t.Helper()
- testenv.MustHaveGoBuild(t)
-
- // TODO(bcmills): Is this still accurate now that ios is its own GOOS?
- switch platform := runtime.GOOS + "-" + runtime.GOARCH; platform {
- case "darwin-arm64":
- t.Skipf("no compiled packages available for import on %s", platform)
- }
-}
-
// compile runs the compiler on filename, with dirname as the working directory,
// and writes the output file to outdirname.
// compile gives the resulting package a packagepath of testdata/<filebasename>.
t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
}
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
testfiles := map[string][]string{
"exports.go": {"go/ast", "go/token"},
}
func TestVersionHandling(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestImportStdLib(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestImportedTypes(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue5815(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
// Smoke test to ensure that imported methods get the correct package.
func TestCorrectMethodPackage(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue13566(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue13898(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue15517(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue15920(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue20046(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
}
func TestIssue25301(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue25596(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
os.Exit(m.Run())
}
-// skipSpecialPlatforms causes the test to be skipped for platforms where
-// builders (build.golang.org) don't have access to compiled packages for
-// import.
-func skipSpecialPlatforms(t *testing.T) {
- t.Helper()
- testenv.MustHaveGoBuild(t)
-
- switch platform := runtime.GOOS + "-" + runtime.GOARCH; platform {
- case "darwin-arm64":
- t.Skipf("no compiled packages available for import on %s", platform)
- }
-}
-
// compile runs the compiler on filename, with dirname as the working directory,
// and writes the output file to outdirname.
// compile gives the resulting package a packagepath of testdata/<filebasename>.
t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
}
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
testfiles := map[string][]string{
"exports.go": {"go/ast", "go/token"},
t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
}
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
tmpdir := mktmpdir(t)
defer os.RemoveAll(tmpdir)
}
func TestVersionHandling(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestImportStdLib(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestImportedTypes(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue5815(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
// Smoke test to ensure that imported methods get the correct package.
func TestCorrectMethodPackage(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue13566(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestTypeNamingOrder(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue13898(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue15517(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue15920(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue20046(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
}
func TestIssue25301(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {
}
func TestIssue25596(t *testing.T) {
- skipSpecialPlatforms(t)
+ testenv.MustHaveGoBuild(t)
// This package only handles gc export data.
if runtime.Compiler != "gc" {