diff options
author | Tom Rini <trini@konsulko.com> | 2022-08-22 12:41:07 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-22 12:41:07 -0400 |
commit | 850ac7ceb75d2f86f0feae48ee77ee663dcd29d5 (patch) | |
tree | 5d70681ddd31ad0cb69ad7900a9956aaae8aba51 /tools/binman/entry_test.py | |
parent | 61e887fb9cbb6e1d64c2383a865f79ed3570bcf8 (diff) | |
parent | cd15b640b0b8d5a7ba5f1c0587e4f9c767e2d8fb (diff) |
Merge tag 'dm-pull-20aug22' of https://source.denx.de/u-boot/custodians/u-boot-dm
binman fixes for various things
binman clean-up of compression and addition of utilities
Diffstat (limited to 'tools/binman/entry_test.py')
-rw-r--r-- | tools/binman/entry_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/binman/entry_test.py b/tools/binman/entry_test.py index 1d60076be1..aa470c5816 100644 --- a/tools/binman/entry_test.py +++ b/tools/binman/entry_test.py @@ -105,6 +105,15 @@ class TestEntry(unittest.TestCase): self.assertTrue(isinstance(ent, Entry_blob)) self.assertEquals('missing', ent.etype) + def testDecompressData(self): + """Test the DecompressData() method of the base class""" + base = entry.Entry.Create(None, self.GetNode(), 'blob-dtb') + base.compress = 'lz4' + bintools = {} + base.comp_bintool = base.AddBintool(bintools, '_testing') + self.assertEquals(tools.get_bytes(0, 1024), base.CompressData(b'abc')) + self.assertEquals(tools.get_bytes(0, 1024), base.DecompressData(b'abc')) + if __name__ == "__main__": unittest.main() |