archive: support using lz4 legacy (MR 36)

fixes: https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/issues/27
This commit is contained in:
Gabriel Marcano
2023-04-09 23:29:49 -07:00
committed by Clayton Craft
parent 0054fde90d
commit a15c02f3aa
4 changed files with 29 additions and 0 deletions

View File

@@ -249,6 +249,12 @@ func TestExtractFormatLevel(t *testing.T) {
expectedFormat: FormatLzma,
expectedLevel: LevelDefault,
},
{
name: "lz4, fast",
in: "lz4:fast",
expectedFormat: FormatLz4,
expectedLevel: LevelFast,
},
{
name: "none",
in: "none",