summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/zstd/tests/cli-tests/compression/format.sh
blob: 192fa2cf29fb27c05a77879b59446ae23c787e2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

. "$COMMON/format.sh"

set -e

# Test --format
zstd --format=zstd file -f
zstd -t file.zst
for format in "gzip" "lz4" "xz" "lzma"; do
	if zstd_supports_format $format; then
		zstd --format=$format file
		zstd -t file.$(format_extension $format)
		zstd -c --format=$format file | zstd -t --format=$format
	fi
done