# Test artefacts
tmp*
*.zst
+*.zstd
dictionary.
dictionary
NUL
static const char *suffixList[] = {
ZSTD_EXTENSION,
TZSTD_EXTENSION,
+#ifndef ZSTD_NODECOMPRESS
+ ZSTD_ALT_EXTENSION,
+#endif
#ifdef ZSTD_GZDECOMPRESS
GZ_EXTENSION,
TGZ_EXTENSION,
#define ZSTD_EXTENSION ".zst"
#define TZSTD_EXTENSION ".tzst"
+#define ZSTD_ALT_EXTENSION ".zstd" /* allow decompression of .zstd files */
#define LZ4_EXTENSION ".lz4"
#define TLZ4_EXTENSION ".tlz4"
grep ".lz4" tmplg > $INTOVOID && die "Unsupported suffix listed"
fi
+touch tmp1
+zstd tmp1 -o tmp1.zstd
+zstd -d tmp1.zstd # support .zstd suffix even though it's not the default suffix
println "\n===> tar extension tests "
-rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4
+rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4 tmp1.zstd
datagen > tmp
tar cf tmp.tar tmp