Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | # setup | |
5 | echo "file1" > file1 | |
6 | echo "file2" > file2 | |
7 | ||
8 | echo "Test zstd ./file1 - file2" | |
9 | rm -f ./file*.zst | |
10 | echo "stdin" | zstd ./file1 - ./file2 | zstd -d | |
11 | cat file1.zst | zstd -d | |
12 | cat file2.zst | zstd -d | |
13 | ||
14 | echo "Test zstd -d ./file1.zst - file2.zst" | |
15 | rm ./file1 ./file2 | |
16 | echo "stdin" | zstd - | zstd -d ./file1.zst - file2.zst | |
17 | cat file1 | |
18 | cat file2 | |
19 | ||
20 | echo "zstd -d ./file1.zst - file2.zst -c" | |
21 | echo "stdin" | zstd | zstd -d ./file1.zst - file2.zst -c |