aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-08 13:35:36 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-08 13:35:36 +0200
commit9080267603b1006c4867c823307dca9df8be0d20 (patch)
treed93e4ddb1a15e271b03c268dbeb37a0cc4f8145d /tests
parentAvoid using ! in test_files.sh, because that doesn't work (diff)
downloadxz-9080267603b1006c4867c823307dca9df8be0d20.tar.xz
Added a few test files.
Diffstat (limited to 'tests')
-rw-r--r--tests/files/README21
-rw-r--r--tests/files/bad-cat-single-none-pad_garbage_1.lzmabin0 -> 65 bytes
-rw-r--r--tests/files/bad-cat-single-none-pad_garbage_2.lzmabin0 -> 65 bytes
-rw-r--r--tests/files/bad-cat-single-none-pad_garbage_3.lzmabin0 -> 65 bytes
-rw-r--r--tests/files/bad-single-data_after_eopm_1.lzma (renamed from tests/files/bad-single-data_after_eopm.lzma)bin55 -> 55 bytes
-rw-r--r--tests/files/bad-single-none-truncated.lzmabin0 -> 29 bytes
6 files changed, 18 insertions, 3 deletions
diff --git a/tests/files/README b/tests/files/README
index f2b274c2..542a7b27 100644
--- a/tests/files/README
+++ b/tests/files/README
@@ -59,12 +59,27 @@
2.2. Bad Files
- bad-single-data_after_eopm.lzma has LZMA+Subblock, where the Subblock
+ bad-single-none-truncated.lzma is good-single-none.lzma without the
+ last byte of the file.
+
+ bad-cat-single-none-pad_garbage_1.lzma is good-cat-single-none-pad.lzma
+ with 0xFE appended to the end of the file. 0xFE doesn't begin .lzma
+ or LZMA_Alone format file.
+
+ bad-cat-single-none-pad_garbage_2.lzma is good-cat-single-none-pad.lzma
+ with 0xFF appended to the end of the file. 0xFF begins .lzma format
+ file, thus the decoder has to detect that the file is incomplete.
+
+ bad-cat-single-none-pad_garbage_3.lzma is good-cat-single-none-pad.lzma
+ with 0x5D appended to the end of the file. 0x5D is the most common
+ first byte of LZMA_Alone format file.
+
+ bad-single-data_after_eopm_1.lzma has LZMA+Subblock, where the Subblock
filter gives one byte of data to LZMA after LZMA has detected EOPM.
bad-single-data_after_eopm_2.lzma is like
- bad-single-data_after_eopm.lzma but Subblock gives 256 MiB of data to
- LZMA after LZMA has detected EOPM.
+ bad-single-data_after_eopm_1.lzma but Subblock gives 256 MiB of data
+ to LZMA after LZMA has detected EOPM.
bad-single-subblock_subblock.lzma has Subblock+Subblock, where the
Subblock decoder is given End of Input in the middle of a Subblock.
diff --git a/tests/files/bad-cat-single-none-pad_garbage_1.lzma b/tests/files/bad-cat-single-none-pad_garbage_1.lzma
new file mode 100644
index 00000000..447f1998
--- /dev/null
+++ b/tests/files/bad-cat-single-none-pad_garbage_1.lzma
Binary files differ
diff --git a/tests/files/bad-cat-single-none-pad_garbage_2.lzma b/tests/files/bad-cat-single-none-pad_garbage_2.lzma
new file mode 100644
index 00000000..26595aae
--- /dev/null
+++ b/tests/files/bad-cat-single-none-pad_garbage_2.lzma
Binary files differ
diff --git a/tests/files/bad-cat-single-none-pad_garbage_3.lzma b/tests/files/bad-cat-single-none-pad_garbage_3.lzma
new file mode 100644
index 00000000..73c87449
--- /dev/null
+++ b/tests/files/bad-cat-single-none-pad_garbage_3.lzma
Binary files differ
diff --git a/tests/files/bad-single-data_after_eopm.lzma b/tests/files/bad-single-data_after_eopm_1.lzma
index 3c1e90f2..3c1e90f2 100644
--- a/tests/files/bad-single-data_after_eopm.lzma
+++ b/tests/files/bad-single-data_after_eopm_1.lzma
Binary files differ
diff --git a/tests/files/bad-single-none-truncated.lzma b/tests/files/bad-single-none-truncated.lzma
new file mode 100644
index 00000000..cc7aa56b
--- /dev/null
+++ b/tests/files/bad-single-none-truncated.lzma
Binary files differ