mirror of
https://github.com/facebook/zstd.git
synced 2025-11-08 00:22:15 -05:00
Adds the new CLI testing platform that I'm proposing. See the added `README.md` for details.
17 lines
329 B
Bash
Executable File
17 lines
329 B
Bash
Executable File
#!/bin/sh
|
|
|
|
source "$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
|