[test] Add new CLI testing platform

Adds the new CLI testing platform that I'm proposing.
See the added `README.md` for details.
This commit is contained in:
Nick Terrell committed 2022-01-27 13:56:59 -08:00
1 parent f088c430e3
commit f3096ff6d1
37 files changed
+1452

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
source "$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
}