facebook / zstd

Zstandard - Fast real-time compression algorithm
http://www.zstd.net
Other
23.42k stars 2.08k forks source link

Unit test for external sequence producer + static CCtx + streaming #4063

Closed embg closed 4 months ago

embg commented 4 months ago

Linux uses streaming compression in BTRFS, but our existing unit test for the QAT + Linux scenario only covers one-shot compression.

This PR adds a unit test for the streaming scenario. It uses the older ZSTD_compressStream() API since that is what Linux uses.