git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / cli-tests / compression / format.sh
1 #!/bin/sh
2
3 . "$COMMON/format.sh"
4
5 set -e
6
7 # Test --format
8 zstd --format=zstd file -f
9 zstd -t file.zst
10 for format in "gzip" "lz4" "xz" "lzma"; do
11         if zstd_supports_format $format; then
12                 zstd --format=$format file
13                 zstd -t file.$(format_extension $format)
14                 zstd -c --format=$format file | zstd -t --format=$format
15         fi
16 done