Add cli-tests to `make test`. This adds a `python3` dependency to `make test`, but not `make check`. We could make this dependency optional by skipping the tests if `python3` is not present.
20 lines
243 B
Bash
20 lines
243 B
Bash
#!/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
|
|
}
|