mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Add CLI Test
This commit is contained in:
parent
0369a699f1
commit
7c1cabaa14
2 changed files with 21 additions and 0 deletions
14
tests/cli-tests/compression/window-constraint.sh
Executable file
14
tests/cli-tests/compression/window-constraint.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
datagen -g256M > file
|
||||
|
||||
zstd --long=30 --single-thread --constrain-window=http-zstd -f < file > file.zst
|
||||
zstd -l -v file.zst
|
||||
|
||||
zstd --long=30 --single-thread --constrain-window=http-dcz -f < file > file.zst
|
||||
zstd -l -v file.zst
|
||||
|
||||
cp file dict
|
||||
zstd --long=30 --single-thread --constrain-window=http-dcz --patch-from dict -f file
|
||||
zstd -l -v file.zst
|
||||
|
||||
rm dict file file.zst
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
...
|
||||
Window Size: 8.00 MiB (8388608 B)
|
||||
...
|
||||
Window Size: 8.00 MiB (8388608 B)
|
||||
...
|
||||
Window Size: 128 MiB (134217728 B)
|
||||
...
|
||||
Loading…
Add table
Add a link
Reference in a new issue