summaryrefslogtreecommitdiff
path: root/libz/tests
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-08-29 20:49:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-08-29 20:49:20 +0300
commit039cbaca07a03305d85e915f4047ce04ca801482 (patch)
tree29ed524558cecb08da0fa5afc9cb4f7653f077cc /libz/tests
parent9fe3f828463e7902cfe85111ce7ed22ab6a9b24f (diff)
Release version 1.2.1200+2v1.2.1200+2
Apply patches which fix CVE-2022-37434 Rewrite testscript not to use files Update TODO file Update libz/README-DEV file
Diffstat (limited to 'libz/tests')
-rw-r--r--libz/tests/minigzip/testscript34
1 files changed, 4 insertions, 30 deletions
diff --git a/libz/tests/minigzip/testscript b/libz/tests/minigzip/testscript
index 92b03fc..a13458c 100644
--- a/libz/tests/minigzip/testscript
+++ b/libz/tests/minigzip/testscript
@@ -5,34 +5,8 @@ s='abcdefghijklmnopqrstuvwxz0123456789'
s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
-: max-compression
-:
-{
- cat <"$s" >=in &!in;
- $* -9 in &in.gz;
- $* -d -c in.gz >"$s"
-}
-: filtered
-:
-{
- cat <"$s" >=in &!in;
- $* -f in &in.gz;
- $* -d -c in.gz >"$s"
-}
-
-: huffman
-:
-{
- cat <"$s" >=in &!in;
- $* -h in &in.gz;
- $* -d -c in.gz >"$s"
-}
-
-: rle
-:
-{
- cat <"$s" >=in &!in;
- $* -r in &in.gz;
- $* -d -c in.gz >"$s"
-}
+$* -9 <"$s" | $* -d -c >"$s" : max-compression
+$* -f <"$s" | $* -d -c >"$s" : filtered
+$* -h <"$s" | $* -d -c >"$s" : huffman
+$* -r <"$s" | $* -d -c >"$s" : rle