Fixes #3212. Long literal and match lengths had an off-by-one error in ZSTD_getSequenceLength. Fix the off-by-one error, and add a golden compression test that catches the bug. Also run all the golden tests in the cli-tests framework.
13 lines
311 B
Bash
Executable File
13 lines
311 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
GOLDEN_DIR="$ZSTD_REPO_DIR/tests/golden-compression/"
|
|
cp -r "$GOLDEN_DIR" golden/
|
|
|
|
zstd -rf golden/ --output-dir-mirror golden-compressed/
|
|
zstd -r -t golden-compressed/
|
|
|
|
zstd --target-compressed-block-size=1024 -rf golden/ --output-dir-mirror golden-compressed/
|
|
zstd -r -t golden-compressed/
|