Suffix list test

This commit is contained in:
George Lu 2018-06-01 10:43:06 -07:00
parent c9b1068298
commit 53ea32cabe

View File

@ -620,6 +620,23 @@ else
$ECHO "lz4 mode not supported"
fi
$ECHO "\n===> suffix list test"
$ZSTD -d tmp.abc 2> tmplg || echo
if [ $GZIPMODE -ne 1 ]; then
grep ".gz" tmplg > $INTOVOID && die "Unsupported suffix listed"
fi
if [ $LZMAMODE -ne 1 ]; then
grep ".lzma" tmplg > $INTOVOID && die "Unsupported suffix listed"
grep ".xz" tmplg > $INTOVOID && die "Unsupported suffix listed"
fi
if [ $LZ4MODE -ne 1 ]; then
grep ".lz4" tmplg > $INTOVOID && die "Unsupported suffix listed"
fi
$ECHO "\n===> zstd round-trip tests "
roundTripTest