HomeFreeBSD

Add zlib regression test

Description

Add zlib regression test

A zlib regression test has been added to verify the correct behavior
of z_compress_level() and z_uncompress. The test case simply takes
a 128k buffer, it compresses the buffer, it them uncompresses the
buffer, and finally it compares the buffers after the transform.
If the buffers match then everything is fine and no data was lost.
It performs this test for all 9 zlib compression levels.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 25 2011, 11:48 PM
Parents
rG5c1967ebe2ad: Fix zlib compression
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG19c1eb829d01: Add zlib regression test (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 26 2011, 12:56 AM