test: java binary skip for apple Silicon

Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
Christopher Phillips 2025-08-26 17:57:21 -04:00
parent 2d8e337d34
commit 66bf43c0cc
No known key found for this signature in database

View File

@ -1,12 +1,18 @@
package binary package binary
import ( import (
"runtime"
"testing" "testing"
"github.com/anchore/syft/syft/pkg/cataloger/internal/pkgtest" "github.com/anchore/syft/syft/pkg/cataloger/internal/pkgtest"
) )
func Test_JavaBinaryImage(t *testing.T) { func Test_JavaBinaryImage(t *testing.T) {
// no match for platform in manifest on Apple Silicon
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
t.Skip("Java binary images not supported on Apple Silicon (darwin/arm64)")
}
tests := []struct { tests := []struct {
image string image string
expected []string expected []string