From 7c1cabaa1476459cbc1d0ad6431bafb2a3843ecd Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Fri, 24 Jan 2025 15:41:49 -0500 Subject: [PATCH] Add CLI Test --- tests/cli-tests/compression/window-constraint.sh | 14 ++++++++++++++ .../compression/window-constraint.sh.stdout.glob | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100755 tests/cli-tests/compression/window-constraint.sh create mode 100644 tests/cli-tests/compression/window-constraint.sh.stdout.glob diff --git a/tests/cli-tests/compression/window-constraint.sh b/tests/cli-tests/compression/window-constraint.sh new file mode 100755 index 00000000000..c8b8e4229a1 --- /dev/null +++ b/tests/cli-tests/compression/window-constraint.sh @@ -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 diff --git a/tests/cli-tests/compression/window-constraint.sh.stdout.glob b/tests/cli-tests/compression/window-constraint.sh.stdout.glob new file mode 100644 index 00000000000..ffafa85dc5f --- /dev/null +++ b/tests/cli-tests/compression/window-constraint.sh.stdout.glob @@ -0,0 +1,7 @@ +... +Window Size: 8.00 MiB (8388608 B) +... +Window Size: 8.00 MiB (8388608 B) +... +Window Size: 128 MiB (134217728 B) +...