Merge pull request #562 from iburinoc/testcorpus

Create a tool that generates random, valid, Zstd frames for decoder testing
This commit is contained in:
Yann Collet
2017-02-23 15:19:36 -08:00
committed by GitHub
6 changed files with 1497 additions and 4 deletions
+10
View File
@@ -17,3 +17,13 @@ It also contains implementations of Huffman and FSE table decoding.
harness <input-file> <output-file> [dictionary]
As an additional resource to be used with this decoder,
see the `decodecorpus` tool in the [tests] directory.
It generates valid Zstandard frames that can be used to verify
a Zstandard decoder implementation.
Note that to use the tool to verify this decoder implementation,
the --content-size flag should be set,
as this decoder does not handle streaming decoding,
and so it must know the decompressed size in advance.
[tests]: https://github.com/facebook/zstd/blob/dev/tests/