1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-28 00:01:53 +03:00

[test][regression] Add no source size with dictionary test

* Add a test that runs without a pledgedSrcSize and with a dictionary.
* Add github.tar data with uses the github dictionary while compressing
  github.tar, instead of each file individually.
This commit is contained in:
Nick Terrell
2021-01-04 15:04:29 -08:00
parent e856052576
commit a98a6e2091
3 changed files with 318 additions and 0 deletions

View File

@ -59,6 +59,14 @@ static config_t no_pledged_src_size = {
.no_pledged_src_size = 1,
};
static config_t no_pledged_src_size_with_dict = {
.name = "no source size with dict",
.cli_args = "",
.param_values = PARAM_VALUES(level_0_param_values),
.no_pledged_src_size = 1,
.use_dictionary = 1,
};
static param_value_t const ldm_param_values[] = {
{.param = ZSTD_c_enableLongDistanceMatching, .value = 1},
};
@ -192,6 +200,7 @@ static config_t const* g_configs[] = {
#undef FAST_LEVEL
&no_pledged_src_size,
&no_pledged_src_size_with_dict,
&ldm,
&mt,
&mt_ldm,