1*01826a49SYabin Cui#!/bin/sh 2*01826a49SYabin Cuiset -e 3*01826a49SYabin Cui 4*01826a49SYabin Cui# setup 5*01826a49SYabin Cuiecho "file1" > file1 6*01826a49SYabin Cuiecho "file2" > file2 7*01826a49SYabin Cui 8*01826a49SYabin Cuiecho "Test zstd ./file1 - file2" 9*01826a49SYabin Cuirm -f ./file*.zst 10*01826a49SYabin Cuiecho "stdin" | zstd ./file1 - ./file2 | zstd -d 11*01826a49SYabin Cuicat file1.zst | zstd -d 12*01826a49SYabin Cuicat file2.zst | zstd -d 13*01826a49SYabin Cui 14*01826a49SYabin Cuiecho "Test zstd -d ./file1.zst - file2.zst" 15*01826a49SYabin Cuirm ./file1 ./file2 16*01826a49SYabin Cuiecho "stdin" | zstd - | zstd -d ./file1.zst - file2.zst 17*01826a49SYabin Cuicat file1 18*01826a49SYabin Cuicat file2 19*01826a49SYabin Cui 20*01826a49SYabin Cuiecho "zstd -d ./file1.zst - file2.zst -c" 21*01826a49SYabin Cuiecho "stdin" | zstd | zstd -d ./file1.zst - file2.zst -c 22