Avoid Ratio Regression Tests When Compressors are Excluded

This commit is contained in:
W. Felix Handte 2023-04-20 11:46:04 -04:00
parent 5a75956001
commit 16bbd7437c

View File

@ -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);