Skip to content

Commit 0fc13d1

Browse files
committed
Remove uneeded architectures compile check
Architecture compilation checks are done in a separate test
1 parent d7726b5 commit 0fc13d1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

internal/test/compilecheck/compile_check_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"testing"
1818

1919
"github.com/docker/docker/api/types/container"
20-
"github.com/stretchr/testify/assert"
2120
"github.com/stretchr/testify/require"
2221
"github.com/testcontainers/testcontainers-go"
2322
)
@@ -38,8 +37,6 @@ func main() {
3837
}
3938
`
4039

41-
var architectures = []string{"386", "arm", "arm64", "amd64", "ppc64le", "s390x"}
42-
4340
func getVersions(t *testing.T) []string {
4441
t.Helper()
4542

@@ -119,20 +116,6 @@ func TestCompileCheck(t *testing.T) {
119116

120117
require.Equal(t, 0, exitCode, "standard build failed: %s", output)
121118

122-
// Check build with various architectures.
123-
for _, arch := range architectures {
124-
exitCode, outputReader, err := container.Exec(
125-
context.Background(),
126-
[]string{"sh", "-c", fmt.Sprintf("GOOS=linux GOARCH=%s go build ./...", arch)},
127-
)
128-
require.NoError(t, err)
129-
130-
output, err := io.ReadAll(outputReader)
131-
require.NoError(t, err)
132-
133-
assert.Equal(t, 0, exitCode, "build for GOARCH=%s failed: %s", arch, output)
134-
}
135-
136119
t.Logf("compilation checks passed for %s", image)
137120
})
138121
}

0 commit comments

Comments
 (0)