File: format.sh

package info (click to toggle)
libzstd 1.5.4%2Bdfsg2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 10,568 kB
  • sloc: ansic: 84,681; sh: 3,649; python: 3,342; cpp: 2,923; makefile: 2,282; asm: 371
file content (16 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download | duplicates (9)
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