Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: tests/bitmaps/TestBmpBlock.py

Issue 6523019: Enable LZMA compression in bmpbklk_utility. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Remove unnecessary code Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/include/bmpblk_header.h ('k') | utility/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/bitmaps/TestBmpBlock.py
diff --git a/tests/bitmaps/TestBmpBlock.py b/tests/bitmaps/TestBmpBlock.py
index ced270ee0cc908c42cb7a83480177b71494b0c25..be815929f9214bd4f393e5635a0fdd98fbf9fecd 100755
--- a/tests/bitmaps/TestBmpBlock.py
+++ b/tests/bitmaps/TestBmpBlock.py
@@ -89,19 +89,27 @@ class TestPackUnpack(unittest.TestCase):
self.assertEqual(0, rc)
os.chdir('..')
- def testPackUnpackZ(self):
- """Create, unpack, recreate with explicit compression"""
- rc, out, err = runprog(prog, '-z', '1', '-c', 'case_simple.yaml', 'FOO')
+ def doPackUnpackZ(self, comp):
+ """Create, unpack, recreate with a given compression"""
+ rc, out, err = runprog(prog, '-z', comp, '-c', 'case_simple.yaml', 'FOO')
self.assertEqual(0, rc)
rc, out, err = runprog(prog, '-x', '-d', './FOO_DIR', 'FOO')
self.assertEqual(0, rc)
os.chdir('./FOO_DIR')
- rc, out, err = runprog(prog, '-z', '1', '-c', 'config.yaml', 'BAR')
+ rc, out, err = runprog(prog, '-z', comp, '-c', 'config.yaml', 'BAR')
self.assertEqual(0, rc)
rc, out, err = runprog('/usr/bin/cmp', '../FOO', 'BAR')
self.assertEqual(0, rc)
os.chdir('..')
+ def testPackUnpackZ1(self):
+ """Create, unpack, recreate with EFIv1 compression"""
+ self.doPackUnpackZ('1');
+
+ def testPackUnpackZ2(self):
+ """Create, unpack, recreate with LZMA compression"""
+ self.doPackUnpackZ('2');
+
def tearDown(self):
rc, out, err = runprog('/bin/rm', '-rf', './FOO_DIR', 'FOO')
self.assertEqual(0, rc)
« no previous file with comments | « firmware/include/bmpblk_header.h ('k') | utility/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698