xref: /aosp_15_r20/external/zstd/tests/cli-tests/progress/no-progress.sh (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1#!/bin/sh
2
3#!/bin/sh
4
5. "$COMMON/platform.sh"
6
7set -e
8
9echo hello > hello
10echo world > world
11
12zstd -q hello world
13
14println >&2 "Tests cases where progress information should not be printed"
15
16for args in \
17	"" \
18	"--fake-stderr-is-console -q" \
19	"--fake-stderr-is-console -qq --progress" \
20	"--no-progress --fake-stderr-is-console" \
21	"--no-progress --fake-stderr-is-console -v"
22do
23	println >&2 "args = $args"
24	println >&2 "compress file to file"
25	zstd $args -f hello
26	println >&2 "compress pipe to pipe"
27	zstd $args < hello > $INTOVOID
28	println >&2 "compress pipe to file"
29	zstd $args < hello -fo hello.zst
30	println >&2 "compress file to pipe"
31	zstd $args hello -c > $INTOVOID
32	println >&2 "compress 2 files"
33	zstd $args -f hello world
34
35	println >&2 "decompress file to file"
36	zstd $args -d -f hello.zst
37	println >&2 "decompress pipe to pipe"
38	zstd $args -d < hello.zst > $INTOVOID
39	println >&2 "decompress pipe to file"
40	zstd $args -d < hello.zst -fo hello
41	println >&2 "decompress file to pipe"
42	zstd $args -d hello.zst -c > $INTOVOID
43	println >&2 "decompress 2 files"
44	zstd $args -d -f hello.zst world.zst
45	println >&2 ""
46done
47