git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / cli-tests / compression / format.sh
CommitLineData
648db22b 1#!/bin/sh
2
3. "$COMMON/format.sh"
4
5set -e
6
7# Test --format
8zstd --format=zstd file -f
9zstd -t file.zst
10for 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
16done