648db22b |
1 | #!/bin/sh |
2 | |
3 | #!/bin/sh |
4 | |
5 | . "$COMMON/platform.sh" |
6 | |
7 | set -e |
8 | |
9 | echo hello > hello |
10 | echo world > world |
11 | |
12 | zstd -q hello world |
13 | |
14 | println >&2 "Tests cases where progress information should not be printed" |
15 | |
16 | for 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" |
22 | do |
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 "" |
46 | done |