xref: /aosp_15_r20/external/zstd/tests/cli-tests/common/format.sh (revision 01826a4963a0d8a59bc3812d29bdf0fb76416722)
1#!/bin/sh
2
3. "$COMMON/platform.sh"
4
5zstd_supports_format()
6{
7	zstd -h | grep > $INTOVOID -- "--format=$1"
8}
9
10format_extension()
11{
12	if [ "$1" = "zstd" ]; then
13		printf "zst"
14	elif [ "$1" = "gzip" ]; then
15		printf "gz"
16	else
17		printf "$1"
18	fi
19}
20