History log of /external/puffin/scripts/test_corpus.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8ae416c7e73a78c688178b51de1cae7a7a686f6d 16-Feb-2018 Amin Hassani <ahassani@google.com> Add test_corpus.py script for testing a corpus of compressed files.

This test has two tests: puffhuff and puffdiff.
- puffhuff runs the puffhuff operation of puffin to make sure a puffed and
huffed file matches the origial one.

- puffdiff runs the puffdiff followed by puffpatch operation of puffin to
make sure diffing and patching files works correctly. For now each pair of
file in the corpus is tested.

$ ./test_corpus.py --help
usage: test_corpus.py [-h] [-d [[...]]] [--cache_size SIZE] [--debug] CORPUS

positional arguments:
CORPUS A corpus directory containing compressed files

optional arguments:
-h, --help show this help message and exit
-d [ [ ...]], --disabled_tests [ [ ...]]
Space separated list of tests to disable. Allowed
options include: puffhuff, puffdiff
--cache_size SIZE The size of the cache for puffpatch operations.
--debug Turns on verbosity.

Bug: 73487244
Test: ./test_corpus.py --debug ~/trunk/images/deflates/puffin_corpus

Change-Id: I2b0adc4b48d9b9a4c446b3604fa2e6132f843be8
/external/puffin/scripts/test_corpus.py