From: W. Felix Handte Date: Thu, 20 Apr 2023 15:46:04 +0000 (-0400) Subject: Avoid Ratio Regression Tests When Compressors are Excluded X-Git-Tag: v1.5.6^2~162^2~13 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=16bbd7437cf67a748ac22349a3ff974a518a3d66;p=thirdparty%2Fzstd.git Avoid Ratio Regression Tests When Compressors are Excluded --- diff --git a/tests/fuzzer.c b/tests/fuzzer.c index b049a9e09..c17cdcd4a 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -2426,6 +2426,15 @@ static int basicUnitTests(U32 const seed, double compressibility) } } DISPLAYLEVEL(3, "OK \n"); +#if !defined(ZSTD_EXCLUDE_DFAST_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_GREEDY_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_DFAST_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_LAZY_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_LAZY2_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_BTLAZY2_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_BTOPT_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_BTULTRA_BLOCK_COMPRESSOR) \ + && !defined(ZSTD_EXCLUDE_BTULTRA2_BLOCK_COMPRESSOR) /* Note : these tests should be replaced by proper regression tests, * but existing ones do not focus on small data + dictionary + all levels. */ @@ -2524,6 +2533,7 @@ static int basicUnitTests(U32 const seed, double compressibility) DISPLAYLEVEL(4, "compression efficiency tests OK \n"); } +#endif ZSTD_freeCCtx(ctxOrig); ZSTD_freeCCtx(ctxDuplicated);