mirror of
https://github.com/facebook/zstd.git
synced 2025-12-10 00:06:51 -05:00
Avoid Ratio Regression Tests When Compressors are Excluded
This commit is contained in:
parent
5a75956001
commit
16bbd7437c
@ -2426,6 +2426,15 @@ static int basicUnitTests(U32 const seed, double compressibility)
|
|||||||
} }
|
} }
|
||||||
DISPLAYLEVEL(3, "OK \n");
|
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,
|
/* Note : these tests should be replaced by proper regression tests,
|
||||||
* but existing ones do not focus on small data + dictionary + all levels.
|
* 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");
|
DISPLAYLEVEL(4, "compression efficiency tests OK \n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ZSTD_freeCCtx(ctxOrig);
|
ZSTD_freeCCtx(ctxOrig);
|
||||||
ZSTD_freeCCtx(ctxDuplicated);
|
ZSTD_freeCCtx(ctxDuplicated);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user