Skip to content

Commit

Permalink
Add CLI Test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhandte committed Jan 27, 2025
1 parent 0369a69 commit 7c1caba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/cli-tests/compression/window-constraint.sh
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions tests/cli-tests/compression/window-constraint.sh.stdout.glob
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
...
Window Size: 8.00 MiB (8388608 B)
...
Window Size: 8.00 MiB (8388608 B)
...
Window Size: 128 MiB (134217728 B)
...

0 comments on commit 7c1caba

Please sign in to comment.