Li-Yu Yu
2a12bbaf90
Update cli-tests/file-stat tests
2025-03-28 22:46:26 +00:00
Yann Collet
2f9627863f
update error message
2025-03-28 10:02:37 -07:00
Yann Collet
0bdeb1d204
fix test
2025-03-28 09:18:17 -07:00
Yann Collet
a293cdcb85
added CI test
2025-03-28 09:18:17 -07:00
Yann Collet
76c2fdc7b7
better naming
...
and more narrow scope of local variables
2025-03-28 09:18:17 -07:00
Yann Collet
eb168a0afc
add --patch-apply command
...
as an equivalent for `-d --patch-from`.
Requested by @sergeevabc in #2173 .
2025-03-25 14:50:39 -07:00
Yann Collet
9a57bdc0bd
attempt to reduce length of long cli tests by invoking -T0
2025-03-11 14:10:35 -07:00
Yann Collet
c583c2c39e
warn when requesting decompression with multiple threads
...
restore #2918 fix
2025-03-10 22:50:00 -07:00
Yann Collet
3c4096c83e
fixed ShellCheck warning
2025-03-10 19:11:44 -07:00
Yann Collet
2ff87aefac
fix FreeBSD
...
use an alias instead of a function
also: added more traces and updated version nb to v1.5.8
2025-03-10 19:04:41 -07:00
Yann Collet
c18374bb16
add test
...
checks that ZSTD_NBTHREADS triggers the expected verbose message
Also: checked that the new test script fails on current `dev` branch, and is fixed by this branch
2025-03-10 13:40:47 -07:00
Yann Collet
d5986f235f
fix #4332 : setting ZSTD_NBTHREADS=0 via environment variables
2025-03-10 00:12:34 -07:00
Nick Terrell
b16d193512
[test] Add tests for determinism
...
Run compression & validate the compressed file matches a known checksum.
To update the output run:
```
make -C tests update-cli-tests
```
2025-03-07 10:31:19 -05:00
Yann Collet
5ae1cb9fa1
added a cli test for new command --jobsize
2025-03-04 15:24:43 -08:00
Yann Collet
0298df50f9
update cli-tests
2025-03-04 14:43:06 -08:00
Yann Collet
9b8b414833
updated playTests.sh to employ the new commands
2025-03-04 13:22:01 -08:00
Yann Collet
339bca6606
update ldm compression results
2025-02-10 10:46:37 -08:00
Yann Collet
72406b71c3
update hrlog rule to favor compression ratio a bit more at low levels
2025-02-10 10:46:37 -08:00
Yann Collet
7c5b6002c9
update results from the --long mode
2025-02-10 10:46:37 -08:00
Yann Collet
613901b6d3
modifies command echoing for macos / linux compatibility
2025-02-09 23:41:32 -08:00
Yann Collet
1603cbe83e
update test for 32-bit mode
...
--max doesn't work in 32-bit mode, due to address space limitation
2025-02-09 23:02:14 -08:00
Yann Collet
41b7193757
added --max to test suite
2025-02-09 12:26:36 -08:00
Yann Collet
34ba14437a
minor boundary change
...
improves compression ratio at low levels
2025-02-05 18:41:59 -08:00
Yann Collet
2949252923
fix minor conversion warnings
2025-02-05 17:01:19 -08:00
Yann Collet
e87d15938c
more %zu warnings fixes
2025-02-05 16:48:19 -08:00
Yann Collet
590c22454e
fix more %zu warnings
2025-02-05 16:36:54 -08:00
Yann Collet
f9c1850aa2
fix minor printf argument limitation on older mingw
...
which do not support `%zu` fields
2025-02-05 16:28:52 -08:00
Yann Collet
78275149ea
Added a final success message at end of tests
...
so that a human reading the test log can determine everything was fine without consulting the shell error code.
Also: made `make check` slightly shorter by moving one longer test to `make test`
2025-01-17 19:30:55 -08:00
Yann Collet
8eb2587432
added benchmark for get1BlockSummary()
2025-01-15 17:11:27 -08:00
Yann Collet
bfc58f5ba2
generalize validation function
2025-01-15 17:11:27 -08:00
Yann Collet
d1f0e5fb97
fullbench can run a verification function
...
compressSequencesAndLiterals: fixed long lengths in scalar mode
2025-01-15 17:11:27 -08:00
Yann Collet
886720442f
initial implementation (incomplete)
...
needs to take care of long lengths > 65535
2025-01-15 17:11:27 -08:00
Yann Collet
04a2a0219c
update type names
...
naming convention: Type names should start with a Capital letter (after the prefix)
2024-12-29 14:25:33 -08:00
Yann Collet
a2ff6ea784
improve ZSTD_getFrameHeader on skippable frames
...
now reports:
- the header size
- the magic variant (within @dictID field)
2024-12-29 12:26:04 -08:00
Yann Collet
f8a2b352d6
clarify doc on Frame-level methods when invoked on a skippable frame
...
following discussion at #4226
2024-12-29 02:41:09 -08:00
Yann Collet
72ce56b527
fixed another invalid scenario
...
compressSequencesAndLiterals() doesn't support sequence validation
2024-12-23 21:15:50 -08:00
Yann Collet
7b294caf46
add one valid test case
...
ZSTD_compressSequencesAndLiterals() may return a specific error code
when data to compress is non-compressible.
2024-12-23 19:43:17 -08:00
Yann Collet
f8725e80cc
added fuzzer test for compressSequencesAndLiterals()
...
piggy-backing onto existing compressSequences() fuzzer test
2024-12-23 18:42:51 -08:00
Yann Collet
b7a9e69d8d
added parameter litCapacity
...
to ZSTD_compressSequencesAndLiterals()
to enforce the litCapacity >= litSize+8 condition.
2024-12-20 10:37:01 -08:00
Yann Collet
52a9bc6fca
fixed minor error in preparation of one fullbench scenario
2024-12-20 10:37:00 -08:00
Yann Collet
ab0f1798e8
ensure that srcSize is controlled
2024-12-20 10:37:00 -08:00
Yann Collet
a80f55f47d
added a test for ZSTD_compressSequencesAndLiterals
...
checks that srcSize is present in the frame header
and bounds the window size.
2024-12-20 10:37:00 -08:00
Yann Collet
0a54f6f288
ZSTD_compressSequencesAndLiterals requires srcSize as parameter
...
this makes it possible to adjust windowSize to its tightest.
2024-12-20 10:37:00 -08:00
Yann Collet
ad023b392f
fixed minor error in one benchmark scenario
2024-12-20 10:37:00 -08:00
Yann Collet
12c47d3262
improved speed of the Sequences converter
2024-12-20 10:37:00 -08:00
Yann Collet
95ad9e47ff
added benchmark for ZSTD_convertBlockSequences_wBlockDelim()
2024-12-20 10:37:00 -08:00
Yann Collet
61ac8311e0
attempt to silence Visual Studio warning about fopen()
2024-12-20 10:37:00 -08:00
Yann Collet
f617e86b71
fixed incorrect assert
2024-12-20 10:37:00 -08:00
Yann Collet
f0d0d95234
added tests
...
check that ZSTD_compressAndLiterals() also controls that the `srcSize` field is exact.
2024-12-20 10:37:00 -08:00
Yann Collet
31b5ef2539
ZSTD_compressSequencesAndLiterals() now supports multi-blocks frames.
2024-12-20 10:36:59 -08:00