Refactor compression tests into a single test.
commit7bececbd693698e4589fee959fb6b0ed69a9faea
authorAlexander Færøy <ahf@torproject.org>
Thu, 27 Apr 2017 01:20:58 +0000 (27 03:20 +0200)
committerAlexander Færøy <ahf@torproject.org>
Thu, 27 Apr 2017 13:51:14 +0000 (27 15:51 +0200)
tree55b3dd777f0d4a0cef635151f99cdf60ee627528
parent224259a929e0503137ebd191d77a4783e8c1a81b
Refactor compression tests into a single test.

This patch refactors our compression tests such that deflate, gzip,
lzma, and zstd are all tested using the same code.

Additionally we use run-time checks to see if the given compression
method is supported instead of using HAVE_LZMA and HAVE_ZSTD.

See: https://bugs.torproject.org/22085
src/test/test_util.c