diff options
Diffstat (limited to '3rdparty/zstd/tests/cli-tests/common/format.sh')
-rw-r--r-- | 3rdparty/zstd/tests/cli-tests/common/format.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3rdparty/zstd/tests/cli-tests/common/format.sh b/3rdparty/zstd/tests/cli-tests/common/format.sh new file mode 100644 index 00000000000..e574e973075 --- /dev/null +++ b/3rdparty/zstd/tests/cli-tests/common/format.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +. "$COMMON/platform.sh" + +zstd_supports_format() +{ + zstd -h | grep > $INTOVOID -- "--format=$1" +} + +format_extension() +{ + if [ "$1" = "zstd" ]; then + printf "zst" + elif [ "$1" = "gzip" ]; then + printf "gz" + else + printf "$1" + fi +} |