From f6720231dd73ca603ceb131bed8b875df47b6cf4 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 6 Mar 2010 19:24:14 +0100 Subject: [PATCH] Added support for LZH (.lha, .lzh) archives. --- tests/data/t.lha | Bin 0 -> 111 bytes tests/data/t.lha.foo | Bin 0 -> 111 bytes tests/data/t.lzh | Bin 0 -> 111 bytes tests/test_archives.py | 5 +++++ tests/test_foo_archives.py | 6 ++++++ 5 files changed, 11 insertions(+) create mode 100644 tests/data/t.lha create mode 100644 tests/data/t.lha.foo create mode 100644 tests/data/t.lzh diff --git a/tests/data/t.lha b/tests/data/t.lha new file mode 100644 index 0000000000000000000000000000000000000000..0440693aba6ac9420b3ff0d6085e88eff4d77c72 GIT binary patch literal 111 zcmb2t)6L09(Uo9;02{kt8wExnJCv0n;DsYQL*NVM7tE{-OeO!>8A7I*)Oj;7$fW|c l80bm^RWSpxELaO`iC#%X$(5BLeG3}V^hJU7nHX^~000827^VOK literal 0 HcmV?d00001 diff --git a/tests/data/t.lha.foo b/tests/data/t.lha.foo new file mode 100644 index 0000000000000000000000000000000000000000..0440693aba6ac9420b3ff0d6085e88eff4d77c72 GIT binary patch literal 111 zcmb2t)6L09(Uo9;02{kt8wExnJCv0n;DsYQL*NVM7tE{-OeO!>8A7I*)Oj;7$fW|c l80bm^RWSpxELaO`iC#%X$(5BLeG3}V^hJU7nHX^~000827^VOK literal 0 HcmV?d00001 diff --git a/tests/data/t.lzh b/tests/data/t.lzh new file mode 100644 index 0000000000000000000000000000000000000000..0440693aba6ac9420b3ff0d6085e88eff4d77c72 GIT binary patch literal 111 zcmb2t)6L09(Uo9;02{kt8wExnJCv0n;DsYQL*NVM7tE{-OeO!>8A7I*)Oj;7$fW|c l80bm^RWSpxELaO`iC#%X$(5BLeG3}V^hJU7nHX^~000827^VOK literal 0 HcmV?d00001 diff --git a/tests/test_archives.py b/tests/test_archives.py index 1f21a85..3d7ba97 100644 --- a/tests/test_archives.py +++ b/tests/test_archives.py @@ -278,3 +278,8 @@ class TestArchives (ArchiveTest): self.archive_test('t.xz') self.archive_extract('t.xz') self.archive_create('t.xz', singlefile=True) + + @needs_program('lha') + def test_lha (self): + self.program = 'lha' + self.archive_commands('t.lha') diff --git a/tests/test_foo_archives.py b/tests/test_foo_archives.py index 06458f1..4171193 100644 --- a/tests/test_foo_archives.py +++ b/tests/test_foo_archives.py @@ -320,3 +320,9 @@ class TestArchives (ArchiveTest): self.archive_test('t.xz.foo') self.archive_extract('t.xz.foo') self.archive_create('t.xz.foo', format="xz", singlefile=True) + + @needs_program('file') + @needs_program('lha') + def test_lha (self): + self.program = 'lha' + self.archive_commands('t.lha.foo', format="lzh")