Feature: Add ffmpeg binary cataloger (#3994)

* Add ffmpeg binary cataloger

Signed-off-by: Alan Pope <alan.pope@anchore.com>

* add linux-amd64 snippet and test

Signed-off-by: Alan Pope <alan.pope@anchore.com>

* Widen scope of regex to two digit version numbers

Signed-off-by: Alan Pope <alan.pope@anchore.com>

* Add full test fixtures for ffmpeg

Signed-off-by: Alan Pope <alan.pope@anchore.com>

---------

Signed-off-by: Alan Pope <alan.pope@anchore.com>
This commit is contained in:
Alan Pope
2025-08-25 07:50:04 -04:00
committed by GitHub
parent ca21ccf21d
commit ada74a8121
5 changed files with 54 additions and 0 deletions
@@ -1370,6 +1370,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("chrome-binary"),
},
},
{
logicalFixture: "ffmpeg/7.1.1/darwin-arm64",
expected: pkg.Package{
Name: "ffmpeg",
Version: "7.1.1",
Type: "binary",
PURL: "pkg:generic/ffmpeg@7.1.1",
Locations: locations("ffmpeg"),
Metadata: metadata("ffmpeg-binary"),
},
},
{
logicalFixture: "ffmpeg/6.1.1/linux-amd64",
expected: pkg.Package{
Name: "ffmpeg",
Version: "6.1.1",
Type: "binary",
PURL: "pkg:generic/ffmpeg@6.1.1",
Locations: locations("ffmpeg"),
Metadata: metadata("ffmpeg-binary"),
},
},
}
for _, test := range tests {