• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17